Css Reset(复位)整理(3)

作者:愚人码头 来源:WEB前端开发 时间:2008-09-09 21:58:00 

Poor Man’s Reset
其实这也是我们常用的一类Css Reset.对字体的大小复位,以及图片链接的边框处理.
也经常在某些站点看到

html, body {   
 padding: 0;   
 margin: 0;   
 }   
html {   
 font-size: 1em;   
 }   
body {   
 font-size: 100%;   
 }   
a img, :link img, :visited img {   
 border: 0;   
 }   

Shaun Inman’s Global Reset
作者认为Shaun写这类的Css Reset是有某种目的性.
而且这类规则是针对的是某些重要的常用浏览器.
比如ie,firefox等

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre,    
form, fieldset, input, p, blockquote, table, th, td, embed, object {   
 padding: 0;   
 margin: 0;    
 }   
table {   
 border-collapse: collapse;   
 border-spacing: 0;   
 }   
fieldset, img, abbr {   
 border: 0;   
 }   
address, caption, cite, code, dfn, em,    
h1, h2, h3, h4, h5, h6, strong, th, var {   
 font-weight: normal;   
 font-style: normal;   
 }   
ul {   
 list-style: none;   
 }   
caption, th {   
 text-align: left;   
 }   
h1, h2, h3, h4, h5, h6 {   
 font-size: 1.0em;   
 }   
q:before, q:after {   
 content: '';   
 }   
a, ins {   
 text-decoration: none;   
 } 

  

Yahoo CSS Reset
yahoo这帮家伙写的Reset个人觉得可以推荐

body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,
fieldset,input,textarea,p,blockquote,th,td {    
 padding: 0;   
 margin: 0;   
 }   
table {   
 border-collapse: collapse;   
 border-spacing: 0;   
 }   
fieldset,img {    
 border: 0;   
 }   
address,caption,cite,code,dfn,em,strong,th,var {   
 font-weight: normal;   
 font-style: normal;   
 }   
ol,ul {   
 list-style: none;   
 }   
caption,th {   
 text-align: left;   
 }   
h1,h2,h3,h4,h5,h6 {   
 font-weight: normal;   
 font-size: 100%;   
 }   
q:before,q:after {   
 content:'';   
 }   
abbr,acronym { border: 0;   
 }

标签:浏览器,复位,css
0
投稿

猜你喜欢

  • pyCharm 设置调试输出窗口中文显示方式(字符码转换)

    2022-04-22 00:23:52
  • Python 中将秒转换为小时、分钟和秒的示例代码

    2023-06-14 12:15:06
  • asp实现本周的一周时间列表的代码

    2011-04-06 10:45:00
  • python中几种自动微分库解析

    2022-12-20 18:24:02
  • 使用darknet框架的imagenet数据分类预训练操作

    2022-08-03 16:57:44
  • Python学习之路之pycharm的第一个项目搭建过程

    2022-01-14 23:16:52
  • python中 ? : 三元表达式的使用介绍

    2022-07-30 00:29:44
  • 让自定义文件下载支持断点续传

    2009-03-11 19:45:00
  • 通过创建SQLServer 2005到 Oracle10g 的链接服务器实现异构数据库数据转换方案

    2024-01-28 00:05:46
  • 网站细节论(1)--阅读的细节

    2007-12-21 12:16:00
  • GPU状态监测 nvidia-smi 命令的用法详解

    2022-08-28 20:57:37
  • python+django+sql学生信息管理后台开发

    2021-10-09 11:20:26
  • python发送多人邮件没有展示收件人问题的解决方法

    2023-01-03 05:16:10
  • 深入了解Python中的变量

    2022-03-15 06:31:24
  • Python如何对文件进行重命名

    2022-01-20 12:31:51
  • Python判断操作系统类型代码分享

    2022-12-30 02:09:31
  • vue-element-admin中node-sass换成dart-sass,安装依赖报code 128多种问题的解决方法

    2024-05-28 16:10:48
  • Java使用正则表达式判断字符串是否以字符开始

    2023-02-16 01:13:47
  • python3.6实现学生信息管理系统

    2021-02-09 20:54:48
  • 布同 Python中文问题解决方法(总结了多位前人经验,初学者必看)

    2021-01-02 08:46:49
  • asp之家 网络编程 m.aspxhome.com