Home >Web Front-end >HTML Tutorial >Display order problem of 2 img in td_html/css_WEB-ITnose
The html code is as follows:
<td rowspan="4" width="115px" valign="middle" onclick="selectDish(1)"> <img src="image/iconMinus.png" id="zdishMinus_1" class="iconSize1 " valign="middle" align="right"> <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"></td>
Post the style! !
Is it the style of 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;}
That’s it, thank you!