css样式重置表
发布日期:2021-08-11 10:05:30 浏览次数:2 分类:技术文章

本文共 1222 字,大约阅读时间需要 4 分钟。

一般在我们的开发中,由于浏览器的不同,会出现很多样式的问题,所以,一份样式重置就很有必要了。

下面是代码:
 
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
;}
h1,h2,h3,h4,h5,h6,em,strong,b{
font-weight
:
bold
;}
del,ins,u,s,a,a:hover{
text-decoration
:
none
;}
body,textarea,input,button,select,keygen,legend{
font
:
12px
/1.14 
arial
,\5b8b\4f
53;
color
:
#333
;
outline
:
0;
}
body{
background
:
#fff
;}
a,a:hover{
color
:
#333
;}
 
基本上这些也够用了,一般会根据情况添加或者修改。

转载于:https://www.cnblogs.com/oldZhangFeng/p/7241213.html

转载地址:https://blog.csdn.net/weixin_30621711/article/details/94790633 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:KVM: Bare-Metal Hypervisor?
下一篇:hibernate笔记--组合主键映射方法

发表评论

最新留言

表示我来过!
[***.240.166.169]2024年04月07日 07时33分33秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章

【Win10】Hexo 搭建个人主页 (六)修改代码块样式 2019-04-26
【Win10】Hexo 搭建个人主页 (七)增加不蒜子统计(详细) 2019-04-26
【Win10】Hexo 搭建个人主页 (八)添加Gitment评论系统(中文版本已解决) 2019-04-26
gulp加速hexo的yelee主题 2019-04-26
用katex引擎(markdown渲染加速) hexo的 yelee 主题 2019-04-26
ERROR Process failed: about/index.md 2019-04-26
【置顶-必看】博主的个人主页 (欢迎一起交流学习) 2019-04-26
hexo+github+coding 搭建个人博客,你要的 大佬资料 都在这(项目完结整理) 2019-04-26
ES6 一文弄懂 var let const 三剑客区别 吊打面试题 2019-04-26
ES6 面试题:你可以写出一百个 div 吗?一万个呢? 2019-04-26
ES6 在es6中自定义封装 jQuery 2019-04-26
ES5 中的 严格模式 2019-04-26
HNUCM-OJ Problem 1614 幸运数 模拟 最短子段和 2019-04-26
【前端干货】金三银四 我面了腾讯 分享面经/学习笔记/实习经历 (附视频讲解分享) 2019-04-26
【前端知识梳理】HTML篇 笔记整理(一) 2019-04-26
LeetCode 76. 最小覆盖子串 【滑动窗口】 2019-04-26
js 用几种方式实现继承(构造函数继承、原型链继承、组合方式继承) 2019-04-26
女朋友要我教她CSS,我就写了这一篇长文,感动哭了? 2019-04-26
LeetCode 69. x 的平方根 【二分查找】 2019-04-26
LeetCode 34. 在排序数组中查找元素的第一个和最后一个位置【二分查找】 2019-04-26