【发布时间】:2018-07-15 01:09:00
【问题描述】:
我已经在网上搜索了一些简单的方法来在所有浏览器上保持一致的网站上制作进度条。我已经通过使用元素而不是进度元素在 PC 上实现了这一点,并认为一切都很好,直到我使用 chrome 浏览器应用程序在我的 android 手机上查看了该网站。
Android 版 Chrome 似乎不支持此代码?! 有人可以指出我正确的方向以使其正确显示吗?
#percent {
background-color: black;
border-radius: 10px;
padding: 3px;
color: yellow;
height: 38px;
}
#inner {
background-color: white;
border-radius: 8px;
height: 100%;
width: 100%;
float: right;
}
#bar {
background-color: cyan;
border-radius: 8px;
text-align: center;
line-height: 38px;
color: blue;
height: 100%;
float: left;
}
<br><br><br>
<div id='percent'>
<div id='inner'>
<div style='width: 63%;' id='bar'><b>63% Full (1354.3 GiB Free)</b></div>
</div>
</div>
【问题讨论】:
标签: android html css google-chrome progress