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
Rust腐蚀怎么免费下载?Rust怎么免费玩
- 5
华为用了主题怎么换锁屏壁纸
- 6
唱吧怎么创建聊天群组
- 7
番茄免费小说的聊天群小说在哪里
- 8
wps2019免稻壳破解版怎么免除广告
- 9
王者荣耀吃瓜群众称号怎么设置显示出来
- 10
《脑洞大侦探》第二章关卡10攻略
- 11
鬼泣4通关宝典之第十五章(2)
- 12
鬼泣4通关宝典之第十五章(4)
- 13
鬼泣4通关宝典之第十章(1)
- 14
鬼泣4通关宝典之第十一章(2)
- 15
先经济法、后会计实务--复习初级会计职称的浅见
- 16
鬼泣4通关宝典之第十五章(1)
- 17
纪念碑谷攻略——第十章
- 18
android学习札记第10章之SQLite内部数据存储
- 19
网络设计------第十节
- 20
9158虚拟视频怎么用
- 21
什么是IMDB链接
- 22
怎样进入第十章异界地下城:兰蒂卢斯的鹰犬
- 23
《永恒的尽头》流程攻略:第十章