我希望仅在将鼠标悬停在图像上时才显示图像,然后尝试将其放在样式部分中,但该图像不起作用。这个代码正确吗?
<style type=“text/css”> img{opacity: 0;} img:hover{opacity: 1;} </style>
html css mouseover hover
css ×1
hover ×1
html ×1
mouseover ×1