[英]Can I adjust the font-size relatively, when the font-size is already defined in the HTML-code?
[英]How can I adjust the HTML font size?
根據上圖,當我嘗試添加此代碼時遇到了一些問題display:block
,但沒有任何改變。 我的文字有什么問題?
我該如何修復它們? 我正在使用這個重置代碼: http://html5doctor.com/html-5-reset-stylesheet/
我只是設置了 font-size:80px;
.counter-box p
{
font-size: 20px;
}
.counter-box .counter
{
font-size: 80px;
}
使用行高屬性:
.counter-box .counter
{
font-size: 80px;
line-height:80px;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.