CSS重置CSS多浏览器兼容
这一块CSS代码重置适合所有的浏览器以防止你的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, font, 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, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } /* remember to define focus styles! */ :focus { outline: 0; } /* remember to highlight inserts somehow! */ ins { text-decoration: none; } del { text-decoration: line-through; } /* tables still need 'cellspacing="0"' in the markup */ table { border-collapse: collapse; border-spacing: 0; }
============ 欢迎各位老板打赏~ ===========
与本文相关的文章
- · 解决flex-direction: column 之后元素宽度自动变为100%
- · 如何用一行 CSS 分别实现 10 种现代布局?
- · [转]纯CSS 实现radio checkbox样式美化
- · css cursor 的可选值(鼠标的各种样式)
- · CSS里padding和width的问题
- · CSS浏览器兼容
- · 你不得不收藏的30个CSS代码片段
- · 如何写兼容所有浏览器的CSS
- · 微信小程序开发中,通过API生成的体验版短链接,打开跳转到的是生产版
- · Nest.js 、 Next.js、 Nuxt.js的区别
- · 小程序可以绑定其它小程序吗?
- · vue3+vite+多环境发面到二级目录配置
