如果它们具有相同的css属性,为什么这两种样式呈现不同?

时间:2013-02-26 19:05:11

标签: html css fonts

您可以看到现场演示here

问题如下,h3title-azul mas-grande

h3{
    color:#109de9;
    font-size:28px;
    margin-bottom:15px;
    margin-top:15px;
}

.title-azul{
    color:#109de9;
    font-size:20px;
    margin-bottom:6px;
}

.mas-grande{
    font-size:28px;
    margin-bottom:15px;
    margin-top:15px;
}

据我所知,它应该呈现相同,但title-azul mas-grande会变小:

enter image description here

当我检查chrome中的元素时,计算出的样式完全相同,除了font-weight: normal;没有出现在类title-azul mas-grande中:

-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;

这很奇怪,因为所需的字体权重实际上是normal,但这是我能找到的唯一明显差异。

你能找出问题所在吗?

1 个答案:

答案 0 :(得分:4)

我认为这只是一种光学效应。我更改了标题文本,它们呈现的相同。 (efectoóptico;))

相关问题