BANNER描述:
三帘翻动效果,底部圆形按纽随意切换图片,左右两侧Prev与Next按纽切换。
DIV代码:
样式8自动生成。
CSS示范脚本:
@import "../../../SysThemes/css/banner/BycSlider.css";
自适应定制注意事项:
#wowslider-container .ws_bullets { top:0; right: 0; }
#wowslider-container { overflow: hidden; zoom: 1; position: relative; width:100%; height:100%; margin:0 auto; z-index:100; }
#wowslider-container .ws_shadow { width:100%; background: url(header_bg.jpg) left 100%; height:30px; position: absolute; left:0; bottom:-30px; z-index:-1; }
#wowslider-container .ws_images { position: absolute; left:0px; top:0px; width:100%; height:100%; overflow:hidden; }
#wowslider-container .ws_images a { color:transparent; }
#wowslider-container .ws_images img { top:0; left:0; border:none 0; }
#wowslider-container a { text-decoration: none; outline: none; border: none; }
<!--top:calc(100% - 50px);这儿是关键,设计错误无法点击向右的箭头翻图片-->
#wowslider-container .ws_bullets { font-size: 0px; top:calc(100% - 50px); left:50%; float: left; position:absolute; z-index:70; }
#wowslider-container .ws_bullets div { position:relative; float:left; }
<!--text-indent: -9999px意在隐藏数字-->
#wowslider-container .ws_bullets a { margin-left:4px; width:8px; height:15px; background: url(bullet.png) left 50% no-repeat; float: left; text-indent: -9999px; position:relative; }
#wowslider-container .ws_bullets a.ws_selbull, #wowslider-container .ws_bullets a:hover { background-position: right 50%; }
#wowslider-container a.ws_next, #wowslider-container a.ws_prev { position:absolute; display:none; top:50%; margin-top:-28px; z-index:60; height: 62px; width: 38px; background-image: url(arrows.png); }
#wowslider-container a.ws_next { background-position: 100% 0; right:-8px; }
#wowslider-container a.ws_prev { left:-8px; background-position: 0 0; }
#wowslider-container a.ws_next:hover { background-position: 100% 100%; }
#wowslider-container a.ws_prev:hover { background-position: 0 100%; }
* html #wowslider-container a.ws_next, * html #wowslider-container a.ws_prev { display:block }
#wowslider-container:hover a.ws_next, #wowslider-container:hover a.ws_prev { display:block }
#wowslider-container .ws-title { position: absolute; bottom:50px; left: 0; margin-right:5px; z-index: 50; padding:12px; color: #F9FBFB; text-transform:uppercase; background:#000000; font-family: Helvetica, Arial, Verdana, sans-serif; font-size: 18px; }
#wowslider-container .ws-title div { padding-top:5px; font-size: 13px; text-transform:none; }
#wowslider-container .ws_bullets a img { text-indent:0; display:block; top:16px; left:-120px; visibility:hidden; position:absolute; -moz-box-shadow: 0 0 5px #999999; box-shadow: 0 0 5px #999999; border: 5px solid #FFFFFF; }
#wowslider-container .ws_bullets a:hover img { visibility:visible; }
#wowslider-container .ws_bulframe div div { height:90px; overflow:visible; position:relative; }
#wowslider-container .ws_bulframe div { left:0; overflow:hidden; position:relative; width:240px; }
#wowslider-container .ws_bullets .ws_bulframe { display:none; top:20px; overflow:visible; position:absolute; cursor:pointer; -moz-box-shadow: 0 0 5px #999999; box-shadow: 0 0 5px #999999; border: 5px solid #FFFFFF; }
#wowslider-container .ws_bulframe span { display:block; position:absolute; top:-11px; margin-left:-9px; left:120px; background:url(triangle.png); width:15px; height:6px; }
改造效果,纯CSS无图片- #wowslider-container .ws_bullets { top:0; right: 0; }
- #wowslider-container { overflow: hidden; zoom: 1; position: relative; width:100%; height:100%; margin:0 auto; z-index:100; }
- #wowslider-container .ws_shadow { width:100%; height:30px; position: absolute; left:0; bottom:-30px; z-index:-1; }
- #wowslider-container .ws_images { position: absolute; left:0px; top:0px; width:100%; height:100%; overflow:hidden; }
- #wowslider-container .ws_images a { color:transparent; }
- #wowslider-container .ws_images img { top:0; left:0; border:none 0; }
- #wowslider-container a { text-decoration: none; outline: none; border: none; }
- #wowslider-container .ws_bullets { font-size: 0px; top:calc(100% - 50px); left:50%; float: left; position:absolute; z-index:70; }
- #wowslider-container .ws_bullets div { position:relative; float:left; }
- #wowslider-container .ws_bullets a { width:15px; height:15px; background: #9A0000; border:0; margin:6px; border-radius:10px; float: left; text-indent: -9999px; position:relative; }
- #wowslider-container .ws_bullets a.ws_selbull, #wowslider-container .ws_bullets a:hover { background-color:#5A342B; border: 2px solid #fff; margin-top:6px;}
- #wowslider-container a.ws_next, #wowslider-container a.ws_prev { position:absolute; display:none; top:50%; margin-top:-40px; z-index:60; height: 80px; width: 38px; background:#000; opacity: .2;}
- #wowslider-container a.ws_next { right:20px; }
- #wowslider-container a.ws_next:before{ float:left; width:0;height:0;content:"";border-left:20px solid #fff; border-top:20px solid transparent; border-bottom:20px solid transparent; margin-left:10px; margin-top: 20px;}
- #wowslider-container a.ws_prev { left:20px;}
- #wowslider-container a.ws_prev:before{ float:left; width:0;height:0;content:"";border-right:20px solid #fff; border-top:20px solid transparent; border-bottom:20px solid transparent; margin-left:8px; margin-top: 20px;}
- #wowslider-container a.ws_next:hover { opacity: .8;}
- #wowslider-container a.ws_prev:hover { opacity: .8;}
- #wowslider-container a.ws_next, #wowslider-container a.ws_prev { display:block }
- #wowslider-container:hover a.ws_next, #wowslider-container:hover a.ws_prev { display:block }
- #wowslider-container .ws-title { position: absolute; bottom:50px; left: 0; margin-right:5px; z-index: 50; padding:12px; color: #F9FBFB; text-transform:uppercase; background:#000000; font-family: Helvetica, Arial, Verdana, sans-serif; font-size: 18px; }
- #wowslider-container .ws-title div { padding-top:5px; font-size: 13px; text-transform:none; }
- #wowslider-container .ws_bullets a img { text-indent:0; display:block; top:16px; left:-120px; visibility:hidden; position:absolute; -moz-box-shadow: 0 0 5px #999999; box-shadow: 0 0 5px #999999; border: 5px solid #FFFFFF; }
- #wowslider-container .ws_bullets a:hover img { visibility:visible; }
- #wowslider-container .ws_bulframe div div { height:90px; overflow:visible; position:relative; }
- #wowslider-container .ws_bulframe div { left:0; overflow:hidden; position:relative; width:240px; }
- #wowslider-container .ws_bullets .ws_bulframe { display:none; top:20px; overflow:visible; position:absolute; cursor:pointer; -moz-box-shadow: 0 0 5px #999999; box-shadow: 0 0 5px #999999; border: 5px solid #FFFFFF; }
- #wowslider-container .ws_bulframe span { display:block; position:absolute; top:-11px; margin-left:-9px; left:120px; width:15px; height:6px; }
复制代码 模板(boblackstone)案例(boblackstone)
改造效果:
- #wowslider-container .ws_bullets { top:0; right: 0; }
- #wowslider-container { overflow: hidden; zoom: 1; position: relative; width:100%; height:100%; margin:0 auto; z-index:100; }
- #wowslider-container .ws_shadow { width:100%; height:30px; position: absolute; left:0; bottom:-30px; z-index:-1; }
- #wowslider-container .ws_images { position: absolute; left:0px; top:0px; width:100%; height:100%; overflow:hidden; }
- #wowslider-container .ws_images a { color:transparent; }
- #wowslider-container .ws_images img { top:0; left:0; border:none 0; }
- #wowslider-container a { text-decoration: none; outline: none; border: none; }
- #wowslider-container .ws_bullets { font-size: 0px; top:calc(100% - 50px); left:50%; float: left; position:absolute; z-index:70; }
- #wowslider-container .ws_bullets div { position:relative; float:left; }
- #wowslider-container .ws_bullets a { width:8px; height:8px; background:none; border:0; margin:3px; border-radius:6px; border: 1px solid #fff; float: left; text-indent: -9999px; position:relative; }
- #wowslider-container .ws_bullets a.ws_selbull{ background-color:#27CAED; border: 1px solid transparent; width: 30px;}
- #wowslider-container a.ws_next, #wowslider-container a.ws_prev { position:absolute; display:none; top:50%; margin-top:-40px; z-index:60; height: 80px; width: 38px; background:#000; opacity: .2;}
- #wowslider-container a.ws_next { right:20px; }
- #wowslider-container a.ws_next:before{ float:left; width:0;height:0;content:"";border-left:20px solid #fff; border-top:20px solid transparent; border-bottom:20px solid transparent; margin-left:10px; margin-top: 20px;}
- #wowslider-container a.ws_prev { left:20px;}
- #wowslider-container a.ws_prev:before{ float:left; width:0;height:0;content:"";border-right:20px solid #fff; border-top:20px solid transparent; border-bottom:20px solid transparent; margin-left:8px; margin-top: 20px;}
- #wowslider-container a.ws_next:hover { opacity: .8;}
- #wowslider-container a.ws_prev:hover { opacity: .8;}
- #wowslider-container a.ws_next, #wowslider-container a.ws_prev { display:block }
- #wowslider-container:hover a.ws_next, #wowslider-container:hover a.ws_prev { display:block }
- #wowslider-container .ws-title { position: absolute; bottom:50px; left: 0; margin-right:5px; z-index: 50; padding:12px; color: #F9FBFB; text-transform:uppercase; background:#000000; font-family: Helvetica, Arial, Verdana, sans-serif; font-size: 18px; }
- #wowslider-container .ws-title div { padding-top:5px; font-size: 13px; text-transform:none; }
- #wowslider-container .ws_bullets a img { text-indent:0; display:block; top:16px; left:-120px; visibility:hidden; position:absolute; -moz-box-shadow: 0 0 5px #999999; box-shadow: 0 0 5px #999999; border: 5px solid #FFFFFF; }
- #wowslider-container .ws_bullets a:hover img { visibility:visible; }
- #wowslider-container .ws_bulframe div div { height:90px; overflow:visible; position:relative; }
- #wowslider-container .ws_bulframe div { left:0; overflow:hidden; position:relative; width:240px; }
- #wowslider-container .ws_bullets .ws_bulframe { display:none; top:20px; overflow:visible; position:absolute; cursor:pointer; -moz-box-shadow: 0 0 5px #999999; box-shadow: 0 0 5px #999999; border: 5px solid #FFFFFF; }
- #wowslider-container .ws_bulframe span { display:block; position:absolute; top:-11px; margin-left:-9px; left:120px; width:15px; height:6px; }
复制代码 模板与案例:danqunaer
弘帝解脱您的大脑,无需编程,无需太多的学习,只需复制粘贴,无需读懂代码,只需略懂英文(比如width,height,background)即可。
做网站就是这么简单,赶快加入弘帝网页制作团队吧! |