是否可以對兩個或多個內聯塊使用不同的行高? 例子:是否可以對兩個或多個內聯塊使用不同的行高?
.block{
width: 300px;
}
.text-1 {
font-size: 30px;
line-height: 30px
}
.text-2 {
font-size: 20px;
line-height: 15px
}
<div class="block">
<span class="text-1">Here some text here some text</span>
<span class="text-2">other text other text other text</span>
</div>
輸出不匹配你的代碼 –
@Ashish你的意思是圖像不匹配輸出? :) – Morpheus
實際上,您使用兩個不同線高的內聯元素。如果你沒有看到你想要的東西,因爲'.block'上的'width'需要修改。什麼是實際問題? – Adam