当前位置:   article > 正文

CSS样式表默认属性——reset.css(模板)

CSS样式表默认属性——reset.css(模板)

**

前端学习笔记——CSS篇

**
在这里插入图片描述

CSS样式表默认属性——reset.css

/***公共样式****/
body, div,
span, h1, h2, h3, h4, h5, h6,
p, em, img, strong, b,
small, u, i, center, dl, dt, dd, ol, ul, li,
sub, sup, tt, var, del, dfn,  ins, kbd, q, s, samp,
strike, applet, object, iframe, fieldset, form, label, legend, table, 
caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, 
embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, 
summary, time, blockquote, pre, a, abbr, acronym, address, big, cite, code, mark, audio, 
video, input, textarea, select 
{ margin:0; padding:0;}	
/* *{
	 font-family:"Microsoft YaHei"!important;
} */

ol, ul{list-style:none;}
li{list-style-type:none;}
/* html { overflow-x:hidden;}
body {font-size:14px; font-family:Microsoft YaHei,Arial; *font-family:Microsoft YaHei,'黑体'; color:#535353; background:#fff;} */

/*a 链接*/
a { text-decoration:none; outline:none; cursor:pointer;outline: none;}
/* a:link { color:#666; } */
a:visited { color:#666; }
/* a:hover, a:active, a:focus { color:#f08200;} */
em,i{font-style:normal;}
/*图片*/
img {
	vertical-align:top;border:0;
}
/*图片表格*/
table{border-collapse:separate;border-spacing:0;}
/* 自定义 */
/* .fB{font-weight:bold;}
.f12px{font-size:12px;}
.f14px{font-size:14px;}
.left{float:left;}
.right{float:right;} */

/* 重定义的最先,伪类其次,自定义最后,便于自己和他人阅读! */
/***END公共样式****/
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42

CSS样式表默认属性不唯一,根据项目开发需求与个人代码编写习惯,可做更改。

:在链接外部样式表时,应将reset.css文件第一个link出来,因为代码的编译是由上到下执行,与CSS的【层叠性】(后来者居上),避免默认样式覆盖设计样式!
在这里插入图片描述

不积跬步无以至千里

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/478370
推荐阅读
相关标签
  

闽ICP备14008679号