a:hover实例
来源:互联网 发布:西安软件测试招聘 编辑:程序博客网 时间:2024/06/10 16:42
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>CSS完成神奇创意的相框</title> <style type="text/css"> * { text-align: center; border: 0; list-style: none; } body { font-size: 12px; font-family: Tahoma, Geneva, sans-serif; background: #000; } .photo { width: 404px; margin: 0 auto; border-left: solid 8px red; border-right: solid 8px red; background: #fff; } .photo h1 { font-size: 14px; color: #666; line-height: 40px; } .photo ul { margin: 0; padding: 0; } .photo li { position: relative; width: 400px; height: 300px; overflow: hidden; } .photo li a:hover span { display: block; text-align: center; position: absolute; top: 0; left: 0; width: 100%; height: 100%; font-size: 40px; line-height: 300px; color: #f00; background: #000; filter: alpha(opacity=70); -moz-opacity: 0.; opacity: 0.7; } .magic1, .magic2, .magic3 { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .magic1 { background: url(01.png) no-repeat; } .magic2 { background: url(02.png) no-repeat; } a:hover { text-decoration: none; } </style> </head> <body> <div class="photo"> <h1>Magic Photo Frame 神奇创意相框</h1> <ul> <li> <a href="#"><img src="wall8.jpg" width="400" height="300" /><span>This is Magic!</span><em class="magic1"> </em></a> </li> <li> <a href="#"><img src="wall8.jpg" width="400" height="300" /><span>This is Magic!</span><em class="magic2"> </em></a> </li> </ul> </div> </body></html>
0 0
- a:hover实例
- a white:hover与 redlink A:hover
- a :hover 和a:hover 区别
- IE6bug整理(hover a:hover) IE6 a:hover 无效
- a:hover 伪类
- a:hover-->onmouse(filter)
- CSS a:hover
- li:hover与a:hover的区别
- 关于A:link A:visited A:hover
- css静态滤镜A:Hover
- A:hover图片预览效果
- IE6 li a:hover position
- ie6 a的hover无效
- a:hover,a:active失效的问题
- a与a:link、a:visited、a:hover、a:active
- a:link, a:visited, a:hover, a:active
- a:link,a:visited,a:hover,a:active 分别是什么意思?
- a:link,a:visited,a:hover,a:active 分别是什么意思?
- C++ vector容器类型
- 有关Unity3D在VR领域的优化措施
- MicroPython是未来?当Python遇上单片机!
- tensorflow:tf.nn.conv2d是怎样实现卷积的?
- 用matlab实现k-means聚类
- a:hover实例
- The Blocks Problem-UVA 101
- UILabel + UITextView 字间距和行间距
- 个人学习总结一机器学习入门(三)
- React Native 开发常见错误
- POJ 1178 Camelot 最短路 Floyd +枚举
- Node.js 定时器
- WKWebView 遇到过的坑
- nyoj-106-背包问题