【发布时间】:2016-06-04 11:38:18
【问题描述】:
我的 html 主体中有一个巨大的 <div> 中的 <p> 块,font-size 中有 80%,我的身体下部还有一个页脚 <div>。
页脚的文字也有80%font-size,如果我在PC上测试它是相等的,但是如果我在移动设备上测试它,页脚的文字非常小,不可能阅读。
这怎么可能?这是什么解释,如何避免?
我的正文:
<div id="mainTextContainer" class="text">
<p>test text</p>
</div>
我的页脚:
<div id="cookiesBar">
<div>
Esta web utiliza 'cookies' para su navegación. Al utilizar nuestros servicios
aceptas su uso.
</div>
</div>
我的 CSS:
#cookiesBar {
display: none;
position: fixed;
left: 0px;
right: 0px;
bottom: 0px;
width: 100%;
text-align: center;
height: auto;
background-color: rgba(136, 188, 182, 0.7);
z-index: 99999;
border-radius: 0px;
text-decoration: none;
line-height: 30px;
font-size: 80%;
font-family: verdana;
}
#mainTextContainer {
width: 80%;
margin: auto;
text-align: center;
margin-top: 60px;
}
.text {
font-size: 80%;
}
【问题讨论】: