我想在鼠标悬浮在图片上时显示一个工具提示框。我不能使用JQuery或任何其他插件,必须使用纯CSS。我在这里看到了一个演示。
http://netdna.webdesignerdepot.com/uploads7/how-to-create-a-simple-css3-tooltip/tooltip_demo.html
我的代码:
<a class="tooltip" title="This is some information for our tooltip." href="#"><img id="graph_one" alt="" src="https://www.onlandscape.co.uk/wp-content/uploads/2013/09/Doug-Chinnery-ICM-Images-4-45x45.jpg" class="graph one"> </a>
Jsfiddle:
不知为何我无法获得提示框。