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

css 基本全局写法

时间:2015-04-18 17:31:16      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:


html,body,h1,h2,h3,h4,h5,h6,div,dl,dt,dd,ul,ol,li,p,blockquote,pre,hr,figure,table,caption,th,td,form,fieldset,legend,input,button,textarea,menu{margin:0;padding:0}
header,footer,section,article,aside,nav,hgroup,address,figure,figcaption,menu,details{display:block}
table{border-collapse:collapse;border-spacing:0}caption,th{text-align:left;font-weight:normal}
html,body,fieldset,img,iframe,abbr{border:0}i,cite,em,var,address,dfn{font-style:normal}
[hidefocus],summary{outline:0}li{list-style:none}
h1,h2,h3,h4,h5,h6,small{font-size:100%}
sup,sub{font-size:83%}
pre,code,kbd,samp{font-family:inherit}
q:before,q:after{content:none}
textarea{overflow:auto;resize:none}
label,summary{cursor:default}
a,button{cursor:pointer}
a{ text-decoration:none;color: #222222;}

body {color: #222222;font-family: "Microsoft YaHei","微软雅黑",Helvetica,"黑体",Arial,Tahoma;font-size: 12px;}
.transparent_class { filter:alpha(opacity=90); -moz-opacity:0.9; -khtml-opacity: 0.9; opacity: 0.9;}
.transparent_class7 { filter:alpha(opacity=70); -moz-opacity:0.7; -khtml-opacity: 0.7; opacity: 0.7;}
html,body{ background-color:#F2F2F2}
.thumbImage img{ MAX-WIDTH: 100%!important;HEIGHT: auto!important;width:expression(this.width > 600 ? "600px" : this.width)!important;}
.thumbImage {MARGIN: auto;WIDTH: 300px;}
*html.thumbImage img{ width:expression(this.width>300&&this.width>this.height?220:auto); height:expresion(this.height>220?220:auto); }
ul, ol {padding-left: 0;list-style-type: none;}

css 基本全局写法

标签:

原文地址:http://www.cnblogs.com/xy99/p/4437709.html

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