Heim >Web-Frontend >HTML-Tutorial >td里面2个img显示顺序问题_html/css_WEB-ITnose

td里面2个img显示顺序问题_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 11:55:471177Durchsuche

html代码如下:

<td rowspan="4" width="115px" valign="middle" onclick="selectDish(1)">  <img  class="iconSize1  lazy"  src="/static/imghwm/default1.png"  data-src="image/iconMinus.png"   id="zdishMinus_1"  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  class="iconSize1 lazy"  src="/static/imghwm/default1.png"  data-src="image/iconAdd.png"    valign="middle" align="right" alt="td里面2个img显示顺序问题_html/css_WEB-ITnose" ></td>


页面显示如下:


image/iconMinus.png 是 “-”号图片,image/iconAdd.png是“+”号图片

各位有谁知道问什么第一个iconMinus.png在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;}



可以了,谢谢!

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn