Html 如果这两种样式具有相同的css属性,为什么会呈现不同的样式?
你可以看到一个现场演示 问题在于以下方面,Html 如果这两种样式具有相同的css属性,为什么会呈现不同的样式?,html,css,fonts,Html,Css,Fonts,你可以看到一个现场演示 问题在于以下方面,h3和标题azul mas grande: h3{ color:#109de9; font-size:28px; margin-bottom:15px; margin-top:15px; } -webkit-border-image: none; border-bottom-color: rgb(16, 157, 233); border-bottom-style: none; border-bottom-width:
h3
和标题azul mas grande
:
h3{
color:#109de9;
font-size:28px;
margin-bottom:15px;
margin-top:15px;
}
-webkit-border-image: none;
border-bottom-color: rgb(16, 157, 233);
border-bottom-style: none;
border-bottom-width: 0px;
border-left-color: rgb(16, 157, 233);
border-left-style: none;
border-left-width: 0px;
border-right-color: rgb(16, 157, 233);
border-right-style: none;
border-right-width: 0px;
border-top-color: rgb(16, 157, 233);
border-top-style: none;
border-top-width: 0px;
color: rgb(16, 157, 233);
display: block;
font-family: omnes;
font-size: 28px;
font-weight: normal; #This does not appear when I inspect the div with the class title-azul mas-grande
height: 28px;
line-height: 28px;
margin-bottom: 15px;
margin-left: 0px;
margin-right: 0px;
margin-top: 15px;
padding-bottom: 0px;
padding-left: 0px;
padding-right: 0px;
padding-top: 0px;
vertical-align: baseline;
width: 750px;
及
据我所知,它应该被渲染为相同的,但是标题azul mas grande
被渲染为更小:
当我检查chrome中的元素时,计算的样式完全相同,除了font-weight:normal代码>在类标题azul mas grande
中未出现:
h3{
color:#109de9;
font-size:28px;
margin-bottom:15px;
margin-top:15px;
}
-webkit-border-image: none;
border-bottom-color: rgb(16, 157, 233);
border-bottom-style: none;
border-bottom-width: 0px;
border-left-color: rgb(16, 157, 233);
border-left-style: none;
border-left-width: 0px;
border-right-color: rgb(16, 157, 233);
border-right-style: none;
border-right-width: 0px;
border-top-color: rgb(16, 157, 233);
border-top-style: none;
border-top-width: 0px;
color: rgb(16, 157, 233);
display: block;
font-family: omnes;
font-size: 28px;
font-weight: normal; #This does not appear when I inspect the div with the class title-azul mas-grande
height: 28px;
line-height: 28px;
margin-bottom: 15px;
margin-left: 0px;
margin-right: 0px;
margin-top: 15px;
padding-bottom: 0px;
padding-left: 0px;
padding-right: 0px;
padding-top: 0px;
vertical-align: baseline;
width: 750px;
这很奇怪,因为所需的字体重量实际上是正常的
,但这是我能找到的唯一明显的区别
你能指出问题所在吗?我认为这只是一种光学效应。我更改了标题文本,它们呈现为相同的。我认为这只是一种光学效应。我更改了标题文本,它们呈现为相同的。(efectoóptico;)同样,我先改变了标题,然后又改变了标题,它们看起来大小和风格都一样。我相信这只是一种错觉。如果你用PS打开图像并覆盖文本,“o”和“e”字符是相同的。该死!我觉得自己像个白痴谢谢!很快就会接受!同样的,我改变了标题,一种方式,然后另一种方式,它们看起来大小和风格都一样。我相信这只是一种错觉。如果你用PS打开图像并覆盖文本,“o”和“e”字符是相同的。该死!我觉得自己像个白痴谢谢!很快就会接受!