Heim > Artikel > Web-Frontend > td里面2个img显示顺序问题_html/css_WEB-ITnose
html代码如下:
<td rowspan="4" width="115px" valign="middle" onclick="selectDish(1)"> <img src="image/iconMinus.png" id="zdishMinus_1" class="iconSize1 " valign="middle" align="right" alt="td里面2个img显示顺序问题_html/css_WEB-ITnose" > <input type="text" name="textfield" id="zdishCount_1" value="1" class="TxtInput4 textCenter " readonly="readonly" valign="middle" align="right"> <img src="image/iconAdd.png" class="iconSize1" valign="middle" align="right" alt="td里面2个img显示顺序问题_html/css_WEB-ITnose" ></td>
样式贴下!!
是img的样式吗?
.iconSize1{width:39px; height:39px;}
.TxtInput4{ width:30px;height:30px; font-size:18px;-webkit-border-radius:5px;}
.textCenter{ text-align:center;}
.iconSize1{width:39px; height:39px;float:left;}
.TxtInput4{ width:30px;height:30px; font-size:18px;-webkit-border-radius:5px;float:left;}
.textCenter{ text-align:center;float:left;}
可以了,谢谢!