adobe dreamweaver
新建html文档。
书写hmtl代码。
CSS3 Lightbox
A simple CSS-only lightbox experiment
书写css代码。a { color: #333; text-decoration: none; }.container { position: relative; text-align: center; }.clr { clear: both; }.container > header { padding: 20px 30px 10px 30px; margin: 0px 20px 10px 20px; position: relative; display: block; text-shadow: 1px 1px 1px rgba(0,0,0,0.2); text-align: center; }.container > header h1 { font-family: 'BebasNeueRegular', 'Arial Narrow', Arial, sans-serif; font-size: 35px; line-height: 35px; position: relative; font-weight: 400; color: rgba(27,54,81,0.8); text-shadow: 1px 1px 1px rgba(0,0,0,0.3); padding: 0px 0px 5px 0px; }.container > header h1 span { color: #c7957b; text-shadow: 0px 1px 1px rgba(255,255,255,0.8); }.container > header h2, p.info { font-size: 16px; font-style: italic; color: #4a3124; text-shadow: 0px 1px 1px rgba(255,255,255,1); }.codrops-top { font-family: 'Arial Narrow', Arial, sans-serif; line-height: 24px; font-size: 11px; width: 100%; background: #000; opacity: 0.9; text-transform: uppercase; z-index: 9999; position: relative; -moz-box-shadow: 1px 0px 2px #000; -webkit-box-shadow: 1px 0px 2px #000; box-shadow: 1px 0px 2px #000; }.codrops-top a { padding: 0px 10px; letter-spacing: 1px; color: #ddd; display: block; float: left; }.codrops-top a:hover { color: #fff; }.codrops-top span.right { float: right; }.codrops-top span.right a { float: none; display: inline; }p.codrops-demos { text-align: center; display: block; padding: 14px; }
书写css透明代码。.lb-album { width: 900px; margin: 0 auto; font-family: 'BebasNeueRegular', 'Arial Narrow', Arial, sans-serif; }.lb-album li { float: left; margin: 5px; position: relative; }.lb-album li > a, .lb-album li > a img { display: block; }.lb-album li > a { width: 150px; height: 150px; position: relative; padding: 10px; background: #f1d2c2; -webkit-box-shadow: 1px 1px 2px #fff, 1px 1px 2px rgba(158,111,86,0.3) inset; -moz-box-shadow: 1px 1px 2px #fff, 1px 1px 2px rgba(158,111,86,0.3) inset; box-shadow: 1px 1px 2px #fff, 1px 1px 2px rgba(158,111,86,0.3) inset; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px 4px 4px 4px; }.lb-album li > a span { position: absolute; width: 150px; height: 150px; top: 10px; left: 10px; text-align: center; line-height: 150px; color: rgba(27,54,81,0.8); text-shadow: 0px 1px 1px rgba(255,255,255,0.6); font-size: 24px; opacity: 0; filter: alpha(opacity=0); /* internet explorer */ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=0)"; /*IE8*/ background: rgb(241,210,194); background: -moz-radial-gradient(center, ellipse cover, rgba(255,255,255,0.56) 0%, rgba(241,210,194,1) 100%); background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, rgba(255,255,255,0.56)), color-stop(100%, rgba(241,210,194,1))); background: -webkit-radial-gradient(center, ellipse cover, rgba(255,255,255,0.56) 0%, rgba(241,210,194,1) 100%); background: -o-radial-gradient(center, ellipse cover, rgba(255,255,255,0.56) 0%, rgba(241,210,194,1) 100%); background: -ms-radial-gradient(center, ellipse cover, rgba(255,255,255,0.56) 0%, rgba(241,210,194,1) 100%); background: radial-gradient(center, ellipse cover, rgba(255,255,255,0.56) 0%, rgba(241,210,194,1) 100%); -webkit-transition: opacity 0.3s linear; -moz-transition: opacity 0.3s linear; -o-transition: opacity 0.3s linear; -ms-transition: opacity 0.3s linear; transition: opacity 0.3s linear; }
代码整体结构。
查看效果。
- 1
css3半透明遮罩背景lightbox图片展示
- 2
jquery+css3实现的扇形商品标签
- 3
CSS3中有哪些设置背景图片的属性?
- 4
午餐焖面的做法
- 5
音悦台超清视频下载有高招,帮助您!
- 6
怎么下载音乐
- 7
没那么讲究的香焖面
- 8
家常土豆焖面的做法
- 9
如何下载SWF动画MV
- 10
夏天不想吃饭来碗好吃的焖面吧
- 11
妈妈的味道之焖面
- 12
怎样用电脑下载歌曲,到车载音响上听(精华)
- 13
干面条怎么做焖面
- 14
内蒙特色菜:焖面(简单版)
- 15
美味食谱——焖面
- 16
怎样免登陆下载音悦台上面的MV
- 17
如何下载高品质无损音乐和MV
- 18
怎么下载MV音乐文件,下载的文件放在哪里了?
- 19
焖面怎么做?(传统面食)
- 20
打包下载-汽车音乐的方法
- 21
怎样更简单的批量下载车载音乐
- 22
快速下载音悦台mv
- 23
手把手教你如何使用酷我音乐下载歌曲!