css通用样式

样式一

@charset "utf-8";  
/* CSS Document */  
body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td {margin:0;padding:0;}  
body, button, input, select, textarea {font:12px/1.5 tahoma, arial, \5b8b\4f53, sans-serif;}  
h1, h2, h3, h4, h5, h6 {font-size:100%;}  
address, cite, dfn, em, var {font-style:normal;}  
code, kbd, pre, samp {font-family:courier new, courier, monospace;}  
small {font-size:12px;}  
ul, ol {list-style:none;}  
a {text-decoration:none;}  
a:hover {text-decoration:underline;}  
sup {vertical-align:text-top;}  
sub {vertical-align:text-bottom;}  
legend {color:#000;}  
fieldset, img {border:0;}  
button, input, select, textarea {font-size:100%;}  
table {border-collapse:collapse;border-spacing:0;}  

样式二

@charset "utf-8";  
/* ------------------------------------全局定义---------------------------------------- */  
/* 将具有默认margin和padding的标记置零,所有标记的margin、padding都在使用时具体定义 */  
*{ margin:0;padding:0;}  

/* 修正IE5.x和IE6的斜体溢出bug */  
* html body{ overflow:visible;}  
* html iframe, * html frame{ overflow:auto;}  
* html frameset{ overflow:hidden;}  

/* 常用标签,基本标签默认样式取消,HTML标签,取消基本标签默认样式,防止不同浏览器显示效果不同,text-align:center; 解决不同浏览器居中问题 */  
body{ color:#000; background:#FFF; font:12px/22px Verdana,Arial,sans-serif,"Times New Roman",宋体; text-align:center;}  
body,ul,ol,li,p,h1,h2,h3,h4,h5,h6,form,fieldset,table,td,img,div,tr{ margin:0; padding:0;}  
input,select{ font-size:12px; vertical-align:middle;}  

/* 设置内容左对齐,恢复因BODY设置剧中产生的继承 */  
body div{ text-align:left;}  

/* 标签属性,textarea,input 强制输入时内容超出时换行 */  
textarea,input{ word-wrap:break-word; word-break:break-all; padding:0px;}  

/* 清除ul列表标记的样式,ul列表更多的用在不需要列表前置符号的样式里 */  
li{ list-style-type:none;}  

/* 定义图片边框,当图片作为链接内容被填充时,会有默认边框出现,重定义掉 */  
img{ border:0 none;}  

/* 定义默认的链接样式,仅仅是作为默认样式提供,可以在各自的实例中覆盖掉 */  
a:link, a:visited{ color:#04C; text-decoration:none;}  
a:hover{ color:#F60; text-decoration:underline;}  

/* 去掉链接的虚线框 */  
a { outline:none; star:expression(this.onFocus=this.blur());}  

/* 定义H系列标签,覆盖H系列标签默认属性 */  
h1{ font-size:24px;}  
h2{ font-size:20px;}  
h3{ font-size:18px;}  
h4{ font-size:16px;}  
h5{ font-size:14px;}  
h6{ font-size:12px;}  

可以在下面自定义样式覆盖默认样式。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值