请问如何将多个checkbox在div中排版,即对齐? 如题,我有十几个checkbox,后面的说明文字长短不一,我按一般的换行下来,结果对不齐,请问如何才能将checkbox排好序呀,谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 全给DIV DIV标签万能 比什么li span更好用<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title><style type="text/css"><!--body,td,th { color: #9C0;}.zhengti { background-color: #C66; width: 400px;}.zuo { float: left; width: 100px;}.zuo1 { width: 50px; background-color: #0CC; white-space: nowrap; overflow: hidden;}.you { float: left; width: 200px;}.qing { clear: both;}--></style></head><body><div class="zhengti"> <div class="zuo"> <div class="zuo1"><input name="" type="checkbox" value="" />111111</div> <div class="zuo1"><input name="" type="checkbox" value="" />2222222222</div> <div class="zuo1"><input name="" type="checkbox" value="" />333333333333</div> <div class="zuo1"><input name="" type="checkbox" value="" />4444444444</div> </div> <div class="you"></div><div class="qing"></div></div></body></html> 按1F的用一个div包起来,然后CSS统一设置宽度等样式就比较好对齐了 JS新手,将函数中的图片改写成html呈现 IE6下js幻灯片切换图片时老提示正在下载图片 css错乱 JavaScript调用的问题 请问各位高手 搜索引擎优化 请教一个浏览器兼容性问题 tips 信息提示 在火狐下的效果 会直接闪没掉 求解决方法 firefox打开我的静态网页,一定要刷新才能看到更新过的内容,有什么办法解决? 求指点方法,幻灯片. .net 下的anthem 回调函数如何传入参数 如何让“节点树”和“节点”的“选中”同时对应执行?
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
body,td,th {
color: #9C0;
}
.zhengti {
background-color: #C66;
width: 400px;
}
.zuo {
float: left;
width: 100px;
}
.zuo1 {
width: 50px;
background-color: #0CC;
white-space: nowrap;
overflow: hidden;
}
.you {
float: left;
width: 200px;
}.qing {
clear: both;
}
-->
</style></head><body>
<div class="zhengti">
<div class="zuo">
<div class="zuo1"><input name="" type="checkbox" value="" />111111</div>
<div class="zuo1"><input name="" type="checkbox" value="" />2222222222</div>
<div class="zuo1"><input name="" type="checkbox" value="" />333333333333</div>
<div class="zuo1"><input name="" type="checkbox" value="" />4444444444</div>
</div>
<div class="you"></div>
<div class="qing"></div>
</div></body>
</html>