以下来自UI.StackExchange.com的重复问题:
https://ux.stackexchange.com/questions/1004/mixing-percent-and-fixed-css
在CSS中同时应用百分比和固定值是否有问题?如果有问题,可能会导致哪些问题?
- 混合使用是否降低了浏览器的渲染性能?
- 在渐进式渲染浏览器初始加载时,混合使用是否会导致奇怪的结果?
下面是一种简单混合用法的示例,它可以是任何混合形式。 我不是要验证以下示例。我听说你永远不能像下面的示例那样做,所以我想知道在这种方式下使用CSS是否存在问题。
混合使用示例:
<style>
.container
{
width:300px;
}
.cell
{
width:25%;
}
</style>
<table class="container">
<tr>
<td class="cell"><td>
<td class="cell"><td>
<td class="cell"><td>
<td class="cell"><td>
</tr>
</table>