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公共样式****/

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

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

不积跬步无以至千里

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值