Realization method of a label gray and non clickable
- 2021-07-16 01:47:36
- OfStack
The title attribute of the a tag can realize the function of putting the mouse on it to display information
< a title = "Edit" href = "javascript: return false; "onclick=" return false; "style=" cursor: default; " > < i class="edit" style="opacity: 0.2" > < /i > < /a >
Adding href = "javascript: return false;" Can realize non-clickable function
Add style = "opacity: 0.2" to achieve the effect of graying