CSS Chrome 获取“用户代理样式表”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7332787/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Chrome get "user agent stylesheet"
提问by radzi0_0
Google Chrome has a built-in stylesheet with default margins, paddings, etc.
谷歌浏览器有一个带有默认边距、填充等的内置样式表。
Is there a posibility to get this "user agent stylesheet"to see what are the defaultchrome css settings?
是否有可能获得此“用户代理样式表”以查看默认的chrome css 设置是什么?
I know that I need to override it or use reset style, but I just want to get this chrome built-in css
我知道我需要覆盖它或使用重置样式,但我只想获得这个 chrome 内置 css
回答by thirtydot
Take a look here:
看看这里:
http://trac.webkit.org/browser/trunk/Source/WebCore/css/html.css
http://trac.webkit.org/browser/trunk/Source/WebCore/css/html.css
For some other browsers: Browsers' default CSS for HTML elements
对于其他一些浏览器:浏览器的 HTML 元素的默认 CSS
回答by CommonSenseCode
I was also having a problem with this and had an with a which wasn't working, the problem was that I forgot last dash in input:
我也遇到了这个问题,并且有一个不起作用,问题是我忘记了输入中的最后一个破折号:
<input>
// replace this for
<input />
// this
<input>
// 将此替换为
<input />
// 此