幻灯各项css属性
文件:template/default/common/common.css
以下代码就是控制全局幻灯的,下面进行介绍- /* 幻灯片 */
- .slideblock { position: relative; }
- .slideshow { clear: both; }
- .slideshow li { position: relative; overflow: hidden; }
- .slideshow span.title { position: absolute; bottom: 0; left: 0; margin-bottom: 0; width: 100%; height: 32px; line-height: 32px; font-size: 14px; text-indent: 10px; }
- .slideshow span.title, .slidebar li { background: rgba(0, 0, 0, 0.3); filter:progid<IMG alt=:D src="http://www.dnwxz.com/static/image/smiley/default/biggrin.gif" border=0 smilieid="3">XImageTransform.Microsoft.gradient(startColorstr = #30000000, endColorstr = #30000000); color: {LIGHTLINK}; overflow: hidden; }
- .slidebar li { float: left; margin-right: 1px; width: 20px; height: 20px; line-height: 20px; text-align: center; font-size: 10px; cursor: pointer; }
- .slidebar li.on { background: rgba(255, 255, 255, 0.5); filter:progid<IMG alt=:D src="http://www.dnwxz.com/static/image/smiley/default/biggrin.gif" border=0 smilieid="3">XImageTransform.Microsoft.gradient(startColorstr = #50FFFFFF, endColorstr = #50FFFFFF); color: #000; font-weight: 700; }
复制代码 /* 幻灯片 */
.slideshow { clear: both; } * 幻灯片一级框架强制换行 */
.slideshow li { position: relative; overflow: hidden; } /* 幻灯片二级框架相对定位,溢出内容不显示 */
.slideshow span.title { position: absolute; bottom: 0; left: 0; margin-bottom: 0; width: 100%; height: 32px; background: {FLOATMASKBGCOLOR}; color: {LIGHTLINK} !important; line-height: 32px; font-size: 14px; text-indent: 10px; opacity: 0.5;
filter: alpha(opacity=50); overflow: hidden; } /* 幻灯片标题,相对于父框架.slideshow li进行绝对 定位,left、right、top、bottom为相对定位的元素,背景、强制颜色、行高、字体大小、首行缩进值及兼容透明度 */
.slidebar li { float: left; margin-right: 1px; width: 20px; height: 20px; background: {FLOATMASKBGCOLOR}; line-height: 20px; text-align: center; font-size: 10px; color: {LIGHTLINK}; overflow: hidden; opacity: 0.5; filter: alpha(opacity=50); cursor: pointer;
} /* 幻类顶部序号:浮动、右边距、宽度、高度、背景、行高、对齐方式、字体大小、颜色、溢出内容不显示、兼容透明度值及鼠标形状 */
.slidebar li.on { background: {WRAPBG}; color: #000; font-weight: 700; opacity: 0.8; filter: alpha(opacity=80); } /* 当前序列号样式:背景、颜色、加粗程度及兼容透明度 */
官方默认的幻灯幻灯片展示样式,也许你想换换样子了。呵呵,下面我就给大家分享下如何自定义自己的diy幻灯模块。 |