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
高尔基体cis面什么意思
- 5
怎么做拉猪面/自制面条?
- 6
Blender怎么选择立方体的面
- 7
Blender2.8拆分面与分离面的区别 合并成整体
- 8
剑鱼卤素面的做法
- 9
黑面是什么面
- 10
UG中有界平面怎么使用
- 11
家常味--菠菜面
- 12
怎样做海带面好吃?
- 13
叙称、面称、背称是什么意思,区别是什么
- 14
选购面条的感官识辨法
- 15
剖腹产后怎么减肥最有效?分享剖腹产后瘦身法
- 16
《小大夫》结局是什么
- 17
电脑液晶显示屏的保养方法
- 18
全民K歌怎么对K歌歌曲播放历史历史数据
- 19
柔软全麦牛角包
- 20
妈妈们,你知道玩具在宝宝成长中的作用吗
- 21
马踏飞燕在课本哪一册
- 22
乾坤元丰通宝是一级文物吗
- 23
《清明上河图》的作者是谁