结构:
代码如下 | 复制代码 |
CSS代码:发现博客的高亮显示插件会把有些定位属性重复。大家明白就行!
代码如下 | 复制代码 |
*{margin:0; padding:0;} img{ border:0;} ul, ol { list-style:none; } /*pptBox*/ .pptBox { position:relative; width:683px; height:272px; margin-bottom:10px; overflow:hidden; border:1px solid #dbdbdb; } .pptList li { display:none; } .pptList img { width:683px; height:272px; } .numBox { position:absolute; rightright:8px; bottombottom:14px; z-index:9999; width:88px; } .numBox li { float:left; display:inline; width:14px; height:14px; margin:0 6px 0 0; line-height:14px; color:#ff7e00; cursor:pointer; text-align:center; border:1px solid #ff6c00; background:#fff; } .numBox li.pptOn { background:#ff6c00; color:#fff; } .textBox { position:absolute; left:0; bottombottom:0; z-index:888; width:683px; height:44px; Opacity:0.7; filter: Alpha(Opacity=70); background:#000; overflow:hidden; } .textBox li { display:none; height:44px; padding:0 0 0 10px; line-height:44px; font-size:14px; font-weight:700; color:#fff; } |
插件代码:
代码如下 | 复制代码 |
]$(function() { |