删除浏览器默认样式<!DOCTYPE> [英] Remove browser default styling <!DOCTYPE>

查看:262
本文介绍了删除浏览器默认样式<!DOCTYPE>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法或<!DOCTYPE> 声明,例如 XHTML HTML4 会删除元素上的默认CSS样式吗?

Is there a way or <!DOCTYPE> declaration such as XHTML or HTML4 that would remove the default CSS styling on elements?

推荐答案

Doctype未用于样式设置。有两种突出的方法可以删除所有样式并统一默认外观。

Doctype is not used for styling. There are two prominent ways of removing all the styles and uniforming the default look.


  1. normalize.css https://necolas.github.io/normalize.css/

  2. reset.css > http://meyerweb.com/eric/tools/css/reset/

  1. normalize.css https://necolas.github.io/normalize.css/
  2. reset.css http://meyerweb.com/eric/tools/css/reset/

将这些样式添加到样式表之前的CSS中,以在不同浏览器上在一定程度上统一您的布局。
Normalize.css有什么区别并重置CSS?

add these styles to your css before your stylesheet to uniform you layout to a certain degree, across different browsers. What is the difference between Normalize.css and Reset CSS?

这篇关于删除浏览器默认样式&lt;!DOCTYPE&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆