在Chromium和Firefox中,这个例子按预期工作。但是在Opera v.12.16中,橙色段落上的光标保持手形,就像在body上一样,为什么?我做错了什么吗?
CSS:
更新:
在Firefox中,当我在段落中添加链接和文本时,会出现问题。就像这样:
当鼠标悬停在链接上时,光标会显示为“选择”,在Firefox浏览器中可以看到。这是更新的代码片段。
CSS:
body {
background-image: url( http://i.imgur.com/IH2QeSI.png );
cursor: pointer;
}
body, html {
width: 100%;
height: 100%;
margin: 0;
}
body * {
cursor: auto;
}
p {
width: 50%;
height: 100%;
margin:0 auto;
background-color: orange;
}
HTML:
<body>
<p></p>
</body>
更新:
在Firefox中,当我在段落中添加链接和文本时,会出现问题。就像这样:
<body>
<p><a href='xxx'>xxx</a>xxx</p>
</body>
当鼠标悬停在链接上时,光标会显示为“选择”,在Firefox浏览器中可以看到。这是更新的代码片段。
*
,它会减慢页面加载速度。 - display-name-is-missing*
而不是body *
,它能工作吗? - display-name-is-missing