CSS 布局一个漂亮的滑块
2009-10-06 00:00
330 查看
好好看看代码,相信会对你帮助不少。
CSS布局一个漂亮的滑块
dl {
margin: 0;
padding: 0;
}
dt {
position: relative;
clear: both;
display: block;
float: left;
width: 104px;
height: 20px;
line-height: 20px;
margin-right: 17px;
font-size: .75em;
text-align: right;
}
dd {
position: relative;
display: block;
float: left;
width: 197px;
height: 20px;
margin: 0 0 15px;
background: url("/upload/20091006163826471.jpg");
}
* html dd { float: none; }
dd div {
position: relative;
background: url("/upload/20091006163826679.jpg");
height: 20px;
width: 75%;
text-align:right;
}
dd div strong {
position: absolute;
right: -5px;
top: -2px;
display: block;
background: url("/upload/20091006163826537.gif");
height: 24px;
width: 9px;
text-align: left;
text-indent: -9999px;
overflow: hidden;
}
生活满意度:
63%
工作满意度:
38%
爱情满意度:
86%
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
CSS布局一个漂亮的滑块
dl {
margin: 0;
padding: 0;
}
dt {
position: relative;
clear: both;
display: block;
float: left;
width: 104px;
height: 20px;
line-height: 20px;
margin-right: 17px;
font-size: .75em;
text-align: right;
}
dd {
position: relative;
display: block;
float: left;
width: 197px;
height: 20px;
margin: 0 0 15px;
background: url("/upload/20091006163826471.jpg");
}
* html dd { float: none; }
dd div {
position: relative;
background: url("/upload/20091006163826679.jpg");
height: 20px;
width: 75%;
text-align:right;
}
dd div strong {
position: absolute;
right: -5px;
top: -2px;
display: block;
background: url("/upload/20091006163826537.gif");
height: 24px;
width: 9px;
text-align: left;
text-indent: -9999px;
overflow: hidden;
}
生活满意度:
63%
工作满意度:
38%
爱情满意度:
86%
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
相关文章推荐
- CSS 布局一个漂亮的滑块
- CSS 布局一个漂亮的滑块
- 一个CSS+div高度自适应布局模型
- 一个清新的CSS表单布局
- css系列(布局):实现一个元素在浏览器中水平、垂直居中的几个方案
- 教你一个最常用的前台小模块布局的最佳css解决方案,兼容IE8.0 7.0 6.0 Firefox3.5 2.0 google oprea 苹果浏览器等
- 三列等高CSS布局的一个实例
- HTML/CSS 一个用漂亮的户信息输入页面(含照片)
- CSS 布局实例系列(三)如何实现一个左右宽度固定,中间自适应的三列布局——也聊聊双飞翼
- 跟着写一个CSS栅格布局
- 一个CSS+div高度自适应布局模型
- CSS布局的一个例子
- 一个简单的css+div布局实例,让你很明了的了解怎么布局!
- 【分享】分享一个学习CSS布局的网站
- html+css:一个自适应的两栏布局的实现
- CSS 布局实例系列(二)如何通过 CSS 实现一个左边固定宽度、右边自适应的两列布局
- CSS完成一个文章网页的布局教程
- myRoad--详解一个漂亮的div+css网页模版(一)
- 学习DIV+CSS一个最简单的布局一行三列DIV代码!
- DIV+CSS布局问题:一个宽度不确定的DIV里面放三个水平对齐的DIV,左右两个DIV宽度固定为150px,中间那个DIV充满剩余的宽度