Home > Web Front-end > HTML Tutorial > 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
Release: 2016-06-24 12:12:21
Original
2515 people have browsed it

The

a tag code is as follows:

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

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

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

Add href attribute

a {
cursor:pointer;
}

or

a {
cursor:pointer;
}

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template