您的位置:首页 > Web前端 > CSS

常用公共css文件代码

2013-11-01 00:07 411 查看
@charset "utf-8";
/* 全局css */
body {
background:#fff;
background-attachment:fixed;
background-image:none;
background-position:center center;
background-repeat:no-repeat;
color:#111111;
font-size:12px;
margin:0 auto;
padding:0;
text-align:left;
}
/* 重置 */
div, form, p, i, img, ul, li, ol, dl, dt, dd, table, tr, td, th, fieldset, label, legend, select, button, input {
margin:0;
padding:0;
}
/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
margin:0;
padding:0;
font-size:12px;
font-weight:normal
}
/* 列表样式 */
ul, ol, li, dl, dt, dd {
list-style:none;
}
/* 图片样式 */
img, a img {
border:0px;
padding:0px;
margin:0px;
vertical-align:middle
}
/* 链接样式 */
a:link {
color:#0b2a78;
text-decoration:none;
}
a:visited {
color:#0b2a78;
text-decoration:none;
}
a:hover {
color: #FF6600;
text-decoration: none;
}
a:active {
color:#0b2a78;
text-decoration:none;
}
/** 图片链接效果 **/
.pic a {
padding:4px;
border:1px solid #e6e7e7;
display:inline-block;
}
.pic a:hover {
border:1px solid #000;
background:#fff;
display:inline-block;
}
/**字体颜色**/
.fontred{
color:#f00;
}
.fontgray{
color:#999;
}
.fontblack{
color:#000;
}
/**输入框颜色样式**/
.input-gray{
color:#999;
}
.input-black{
color:#000;
}
.clear {
clear:both;
/*控制分类后,各行高度不一样对不齐问题*/
width:100%;
height:0px;
font-size:0;
overflow:hidden;
/*控制分类后,各行高度不一样对不齐问题*/
line-height:0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: