Home  >  Article  >  Web Front-end  >  How to make the mouse turn into a hand shape when hovering over a label? _html/css_WEB-ITnose

How to make the mouse turn into a hand shape when hovering over a label? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:12:212484browse

The

a tag code is as follows:

<li><a id="display1" onClick="display1()">按图标显示</a></li><li><a id="display2" onClick="display2()">按详细列表显示</a></li>

I specified
a:link {	text-decoration: none;}a:visited {	text-decoration: none;}a:hover {	color: #515151;}a:active {	text-decoration: none;}

in CSS but I don’t know why it doesn’t work for these two a tags


Reply to discussion (solution)

a {
cursor:pointer;
}

or e366576e1b927f831726552b9e2aa5c8

Add href attribute

a {
cursor:pointer;
}

or e366576e1b927f831726552b9e2aa5c8

a {
cursor:pointer;
}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn