非响应css初始化

前端之家收集整理的这篇文章主要介绍了非响应css初始化前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

下面是编程之家 jb51.cc 通过网络收集整理的代码片段。

编程之家小编现在分享给大家,也给大家做个参考。

@charset "gb2312";
* {
    margin: 0;
    padding: 0;
    outline: none;
}
a {
    color:#333;
    text-decoration: none;
}
/*图片|输入框居中对齐*/
img,input {
    vertical-align: middle;
    border:0;
    outline:none;
}
img,button {
    border: none;
}
li {
    list-style: none;
}
.clear {
    clear: both;
    overflow: hidden;
}
.h5 {
    clear: both;
    overflow: hidden;
    height: 5px;
}
.h8 {
    clear: both;
    overflow: hidden;
    height: 8px;
}
.h10 {
    clear: both;
    overflow: hidden;
    height: 10px;
}
/*解决表单元素不继承父级*/
body,button,input,select,textarea {
    font: 12px \5b8b\4f53,arial,sans-serif;
}
input,textarea {
    font-size: 100%;
}
/*去掉table的边距*/
table {
    border-spacing: 0;
    border-collapse: collapse;
}
/*修复浮动*/
.clearfix:after,.clearfix:before {
    display: block;
    visibility: hidden;
    clear: both;
    overflow: hidden;
    height: 0;
    content: '.';
}
/* IE6 */
* html .clearfix {
    zoom: 1;
}
/* IE7 */
* + html .clearfix {
    zoom: 1;
}

以上是编程之家(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。

如果觉得编程之家网站内容还不错,欢迎将编程之家网站推荐给程序员好友。

原文链接:https://www.f2er.com/css/456814.html

猜你在找的CSS相关文章