我在哪里可以找到浏览器的HTML元素的默认CSS?
许多HTML元素都带有一些默认的CSS属性,这些属性有时会导致未知/不需要的行为.例如,输入框在不同浏览器中的显示方式不同.我正在寻找一个涵盖新CSS3属性和新HTML5元素的地方.
我已经在其他(更老的)问题(例如浏览器的默认CSS样式表)中看到了答案,这些答案提示了CSS重置的解决方案.这个解决方案有时候不需要,我常常想保留一些基本属性(例如Chrome中输入框的突出显示).换句话说:我不想因为我不知道他们做了什么而摆脱了.
那么,是否有一个网站可以提供所有这些信息(或者可能是大多数)?
我的h1标签是insode的一个标签,比h2标签小.当在section标签外面时,h1标签的大小正确.我一直在浏览我的CSS页面,但没有发现会导致这种情况发生的事情.这是我的CSS页面:
body
{
font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
background-color: #42413C;
margin: 0;
padding: 0;
color: #000;
background-image: url(images/mass_effect_1_citadel_dreamscene_by_droot1986-d5sw7hu.jpg);
}
a img
{
border: none;
}
.container
{
width: 960px;
background-color: #192370;
margin: 0 auto;
}
header
{
background-color: #050a2e;
}
.sidebar1
{
float: left;
width: 175px;
background-color: #2236d1;
padding-bottom: 10px;
border: solid thin black;
text-align: center;
}
.content
{
padding: 10px 0;
width: 780px;
float: right;
border: solid thin black;
}
footer
{
padding: 10px 0;
background-color: #050a2e;
position: …Run Code Online (Sandbox Code Playgroud)