css默认样式清除

html, body, div, span, applet, object, iframe,

h1, h2, h3, h4, h5, h6, p, blockquote, pre,

a, abbr, acronym, address, big, cite, code,

del, dfn, em, img, ins, kbd, q, s, samp,

small, strike, strong, sub, sup, tt, var,

b, u, i, center,

dl, dt, dd, ol, ul, li,

fieldset, form, label, legend,

table, caption,

article, aside, canvas, details, embed,

figure, figcaption, footer, header, hgroup,

menu, nav, output, ruby, section, summary,

time, mark, audio, video {

margin: 0;

padding: 0;

border: 0;

font-size: 100%;

font-family: "微软雅黑", "Microsoft YaHei", serif;

vertical-align: baseline;

box-sizing: border-box;

}

body {

line-height: 1;

}

/* HTML5 display-role reset for older browsers */

article, aside, details, figcaption, figure,

footer, header, hgroup, menu, nav, section {

display: block;

}

body {

line-height: 1;

}

ol, ul {

list-style: none;

}

blockquote, q {

quotes: none;

}

blockquote:before, blockquote:after,

q:before, q:after {

content: '';

content: none;

}

table {

border-collapse: collapse;

border-spacing: 0;

}

input, select, textarea, button {

vertical-align: middle;

}

input:focus, button {

outline: none;

}

em {

font-style: italic;

}

b, strong {

font-weight: bold;

}

a {

text-decoration: none;

}

a:hover, a:focus{

text-decoration:none;

}

相关推荐
小码哥_常1 小时前
解锁Android嵌入式照片选择器,让你的App体验丝滑起飞
前端
郑寿昌2 小时前
IIoT本体迁移的领域扩展机制
服务器·前端·microsoft
深海鱼在掘金3 小时前
Next.js从入门到实战保姆级教程(第十一章):错误处理与加载状态
前端·typescript·next.js
深海鱼在掘金3 小时前
Next.js从入门到实战保姆级教程(第十二章):认证鉴权与中间件
前端·typescript·next.js
energy_DT3 小时前
2026年十五五油气田智能增产装备数字孪生,CIMPro孪大师赋能“流动增产工厂”三维可视化管控
前端
龙猫里的小梅啊3 小时前
CSS(四)CSS文本属性
前端·css
MXN_小南学前端3 小时前
watch详解:与computed 对比以及 Vue2 / Vue3 区别
前端·javascript·vue.js
饭小猿人3 小时前
Flutter实现底部动画弹窗有两种方式
开发语言·前端·flutter
让学习成为一种生活方式4 小时前
pbtk v 3.5.0安装与使用--生信工具084
前端·chrome
heimeiyingwang4 小时前
【架构实战】FinOps云成本优化实践
前端·chrome·架构