Home  >  Article  >  Web Front-end  >  Display order problem of 2 img in td_html/css_WEB-ITnose

Display order problem of 2 img in td_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:55:471090browse

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>


The page is displayed as follows:


image/iconMinus.png is the "-" picture, image/iconAdd .png is a picture with the number " "

Does anyone know why the first iconMinus.png is displayed at the end of td?


Reply to the discussion ( Solution)

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn