css外接所有用法示例
2014-09-03 21:43
190 查看
/*html选择器*/
body {
background: white;
font: 12px Arial,宋体;
}
/*组合选择器+伪元素选择器*/
a:link, a:visited{
text-decoration: none;
color: #888;
}
/*ID选择器*/
#wrapper{
width: 300px;
text-align: left;
}
/*class选择器,标题*/
.tit{
width: 100%;
height: 24px;
background: url(titbg.gif);
}
/*关联选择器,h3标题*/
.tit h3{
margin: 0px;
padding: 0px;
line-height: 24px;
font-size: 12px;
text-indent: 30px;
background: url(titbg.gif) no-repeat 3% 50%;
}
.list{
width: 298px !important;
width: 300px;
float: left;
border: 1px solid #D8D8D8;
border-top: 0px;
}
ul{
list-style-type: none;
margin: 0px;
padding: 0px;
}
ul li{
float: left;
line-height: 20px;
width: 45%;
margin: 0px 5px;
background: url(sidebottom.gif) repeat-x 0 bottom;
}
ul a{
padding-left: 12px;
background: url(bullet.gif) no-repeat 0 50%;
}
ul a{
text-decoration: underline;
color: $ff0000;
}
body {
background: white;
font: 12px Arial,宋体;
}
/*组合选择器+伪元素选择器*/
a:link, a:visited{
text-decoration: none;
color: #888;
}
/*ID选择器*/
#wrapper{
width: 300px;
text-align: left;
}
/*class选择器,标题*/
.tit{
width: 100%;
height: 24px;
background: url(titbg.gif);
}
/*关联选择器,h3标题*/
.tit h3{
margin: 0px;
padding: 0px;
line-height: 24px;
font-size: 12px;
text-indent: 30px;
background: url(titbg.gif) no-repeat 3% 50%;
}
.list{
width: 298px !important;
width: 300px;
float: left;
border: 1px solid #D8D8D8;
border-top: 0px;
}
ul{
list-style-type: none;
margin: 0px;
padding: 0px;
}
ul li{
float: left;
line-height: 20px;
width: 45%;
margin: 0px 5px;
background: url(sidebottom.gif) repeat-x 0 bottom;
}
ul a{
padding-left: 12px;
background: url(bullet.gif) no-repeat 0 50%;
}
ul a{
text-decoration: underline;
color: $ff0000;
}
相关文章推荐
- liunx 中 find常见用法示例 / linux下递归删除目录下所有asp文件
- 关于CSS Padding那些你意想不到的用法示例
- jQuery使用siblings获取某元素所有同辈(兄弟姐妹)元素用法示例
- css中clearfix清除浮动的用法及其原理示例介绍
- CSS定义超链接样式的顺序及四个伪类的用法示例介绍
- CSS的Margin用法
- AjaxPanel自定义控件实现页面无刷新数据交互(做了个示例程序, 效果确实比较Cool, 用法非常简单! )(示例代码下载)
- log4j基本用法及简单配置示例
- filesystemobject组件的用法示例
- AjaxPanel自定义控件实现页面无刷新数据交互(做了个示例程序, 效果确实比较Cool, 用法非常简单! )(示例代码下载)
- STL中的Vector用法示例
- filesystemobject组件的用法示例
- CSS的四种用法
- AjaxPanel自定义控件实现页面无刷新数据交互(做了个示例程序, 效果确实比较Cool, 用法非常简单! )(示例代码下载)
- 一个不错的HTML+CSS菜单示例
- JTable用法示例
- Interface 在DELPHI里的用法示例(转贴)
- TreeMap用法 示例
- DOS Command中,for 和 shift的用法示例