初始化CSS样式

@charset "UTF-8";
/css 初始化 /
html, body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, fieldset, legend, img { margin:0; padding:0; }
fieldset, img,input,button { border:none; padding:0;margin:0;outline-style:none; }
ul, ol { list-style:none; }
input { padding-top:0; padding-bottom:0; font-family: "SimSun","宋体";}
select, input { vertical-align:middle;}
select, input, textarea { font-size:12px; margin:0; }
textarea { resize:none; } /
防止拖动
/
img {border:0; vertical-align:middle; } /* 去掉图片低测默认的3像素空白缝隙/
table { border-collapse:collapse; }
body {
font:12px/150% Arial,Verdana,"\5b8b\4f53";
color:#666;
background:#fff
}
.clearfix:before,.clearfix:after {
content:"";
display:table;
}
.clearfix:after{clear:both;}
.clearfix{
zoom:1;/IE/7/6
/
}
a {color:#666; text-decoration:none; }
a:hover{color:#C81623;}
h1,h2,h3,h4,h5,h6 {text-decoration:none;font-weight:normal;font-size:100%;}
s,i,em{font-style:normal;text-decoration:none;}
.col-red{color: #C81623!important;}

/公共类/
.w { /*版心 提取 */
width: 1210px;margin:0 auto;
}
.fl {
float:left
}
.fr {
float:right
}
.al {
text-align:left
}
.ac {
text-align:center
}
.ar {
text-align:right
}
.hide {
display:none
}

/头部导航开始/
.shortcut {
height: 30px;
line-height: 30px;
background-color: #f1f1f1;
}
.dt,
.shortcut .fore
{
padding:0 20px 0 10px;
position: relative;
}
.dt i,
.fore i
{
font: 400 15px/15px "宋体";
position: absolute;
top:13px;
right:3px;
height: 7px;
overflow: hidden;
width: 15px;
}
.dt s,
.fore s{
position: absolute;
top: -8px;
left: 0;
}
.fr li {
float: left;
padding: 0 10px;
}
.fr .line {
width: 1px;
height: 12px;
background-color: #ddd;
margin-top: 9px;
padding:0;
}
.shortcut .tel-jd{
padding:0 20px 0 25px;
}
.tel{
position: absolute;
width: 15px;
height: 20px;
background: url(../images/sprite.png) no-repeat;
left: 5px;
top:5px;
}
/顶部end/
/topbanner start/
.topbanner {
background-color: #8A25C6;
}
.close-banner {
position: absolute;
right:0;
top:5px;
width: 19px;
height: 19px;
background: url(../images/close.png) no-repeat;
}
.close-banner:hover {
background-position:bottom;
}
.tp{
position: relative;
}

/topbanner end/

.logo {
width: 360px;
height: 75px;
background-color: pink;
float:left;
padding-top: 25px;
background: url(../images/logo.png) no-repeat 0 25px;
position: relative;
}
.jd-a{
display: block;
width: 270px;
height: 60px;
text-indent:-2000em;
}
.db11 {
position: absolute;
width: 180px;
height: 80px;
background-color: pink;
top: 10px;
left: 168px;
}

.search {
width: 538px;
height: 75px;
background-color: purple;
float: left;
padding-top: 25px;
}
.car {
width: 139px;
height: 34px;
background-color: blue;
float: right;
margin:25px 65px 0 0 ;
}


更多咨询请关注:
1、Git 汇总
2、VUE
3、前端开发

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 不会用代码框,所以看着有些乱套,,,,html部分 <!DOCTYPE html> 迅雷看看 ...
    这就是个帅气的名字阅读 1,940评论 0 0
  • 各种纯css图标 CSS3可以实现很多漂亮的图形,我收集了32种图形,在下面列出。直接用CSS3画出这些图形,要比...
    剑残阅读 10,006评论 0 8
  • 1. tab列表折叠效果 html: 能源系统事业部 岗位名称: 工作地点 岗位名...
    lilyping阅读 2,015评论 0 1
  • 1、垂直对齐 如果你用CSS,则你会有困惑:我该怎么垂直对齐容器中的元素?现在,利用CSS3的Transform,...
    kiddings阅读 3,319评论 0 11
  • 20177-06-26 什么是女神? 我百度了下,各有各的看法。让人眼花缭乱。 我个人认为,女神: 除了天...
    筱德阅读 232评论 0 0

友情链接更多精彩内容