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
DNF征战者异界装备选择推荐?dnf征战者异界装备?
- 10
芝士焗土豆泥
- 11
骑马必备装备
- 12
5.1青岛旅游攻略
- 13
怎样做芝士焗土豆泥
- 14
青岛2日自助游线路推荐
- 15
教你做芝士焗薯泥
- 16
青岛旅游攻略—从火车站到胶澳总督府街景照片
- 17
和平精英新模式“特种作战”怎么玩?
- 18
妈妈厨房: 芝士焗土豆泥
- 19
细细游青岛之德国总督府旧址