css中的百分比 浮点型其效果吗?还是只能整型数据。
比如
.tr1
{
width:100%;
}
.td1
{
width:40.25% ;
}
.td2
{
width:30.75%;
}
------解决方案--------------------
可以的吧
------解决方案--------------------
- HTML code
<div style="width:303px;background-color:green;"> <div style="width:78.5%;background-color:red;"> 303 x 78.5% </div> <div style="width:78%;background-color:red;"> 303 x 78% </div> </div>