61,112
社区成员
发帖
与我相关
我的任务
分享
.input {
width:200px;
height:50px;
border:solid #eee 1px;
}
.code {
width:200px;
height:50px;
margin-left:20px;
float: left;
}
.clear {
clear:both;
}
<div class="input"></div>
<div class="code"></div>
<div class="clear"></div>
用向左浮动的原理 (如上代码)这样适应性好一点
也可以用position去定位 自己查一下吧
第一次回帖 没想到还能这样发 就重新发一次
<input id="Text1" type="text" /><img alt="" src="" />
这样不行?