作者:敬昇文军3546 | 来源:互联网 | 2023-05-18 04:11
I just saw this code in an answer:
我刚刚在答案中看到了这段代码:
HTML
HTML
CSS
CSS
.overthumb { display: none; }
.thumbnail:hover .overthumb {
position: absolute;
top: 15px; left: 15px;
display: inline;
}
Live demo here: http://jsfiddle.net/6wQp3/
现场演示:http://jsfiddle.net/6wQp3/
For this code to work .overthumb
must be a child of .thumbnail
.
要使此代码有效,.overthumb必须是.thumbnail的子代。
But if some one has this code:
但如果有人有这个代码:
tttttttttt
How would you select the p
tag if .thumbnail
is hovered?
如果.thumbnail悬停,你会如何选择p标签?
2 个解决方案