码迷,mamicode.com
首页 > Web开发 > 详细

常用公共的css的样式

时间:2016-05-13 12:23:32      阅读:245      评论:0      收藏:0      [点我收藏+]

标签:

 html{-webkit-text-size-adjust:none; /*解决chrome浏览器下字体不能小于12px*/}
 body{overflow-x: hidden; font-size:12px; color:#000000; font-family:Verdana, Arial, Helvetica, sans-serif;
 		/*font-family:Helvetica Neue",?Helveti...YaHei",?Arial,?sans-serif;*//*手机字体*/
 }

a{outline:none; text-decoration:none;}a:hover{ text-decoration:underline;}

html{zoom:1;}html *{outline:0;zoom:1;} html button::-moz-focus-inner{border-color:transparent!important;} 

/*设置margin和padding为0*/
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;} 

table{/*border-collapse:collapse;border-spacing:0;*/} 

fieldset,a img{border:0;} 
address,caption,cite,code,dfn,em,th,var,i{font-style:normal;font-weight:normal;}
li{list-style:none;} caption,th{text-align:left;}

h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;} 

q:before,q:after{content:‘‘;}

input[type="submit"],input[type="reset"],input[type="button"],input[type=date],button,select{
	appearance:none;
	-moz-appearance:none; /* Firefox */
	-webkit-appearance:none; /* Safari 和 Chrome */
	/*去掉苹果的默认UI来渲染按钮 、解决部分手机浏览器对border:none无效办法*/
}

 

常用公共的css的样式

标签:

原文地址:http://www.cnblogs.com/liangcheng11/p/5487166.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!