如何用div+css实现下列效果?
2个回答
展开全部
你好,完整的代码,你看下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Layout</title>
</head>
<body>
<style>
.pannel {margin: 10px auto;padding: 5px;width: 600px;border: 1px solid #ccc;color: #666;}
.pannel .ib {display: inline-block;*display: inline;*zoom: 1;vertical-align: middle;}
.pannel .edit-box {padding: 5px;width: 390px;border: 1px solid #ccc;}
.pannel .check-box {width: 190px;}
.pannel .edit-box .row {margin: 10px 0;}
.pannel .edit-box .inp {width: 70%;height: 30px;vertical-align: middle;border: 1px solid #ccc;}
.pannel .edit-box .inp-label {display: inline-block;*display: inline;*zoom: 1;vertical-align: middle;margin-left: 10px;width: 18%;}
.pannel .cb {vertical-align: middle;}
.pannel .cb-label {display: inline-block;*display: inline;*zoom: 1;vertical-align: middle;margin-left: 5px;}
</style>
<div class="wrap">
<div class="pannel">
<div class="ib edit-box">
<p class="row">
<input type="text" name="" id="editArea1" class="inp"><label for="editArea1" class="inp-label">text</label>
</p>
<p class="row">
<input type="text" name="" id="editArea2" class="inp"><label for="editArea2" class="inp-label">text</label>
</p>
<p class="row">
<input type="text" name="" id="editArea3" class="inp"><label for="editArea3" class="inp-label">text</label>
</p>
</div>
<div class="ib check-box">
<input type="checkbox" name="" id="checkbox1" class="cb"><label for="checkbox1" class="cb-label">Checkbox</label>
</div>
</div>
<div class="pannel">
<div class="ib edit-box">
<p class="row">
<input type="text" name="" id="editArea4" class="inp"><label for="editArea4" class="inp-label">text</label>
</p>
<p class="row">
<input type="text" name="" id="editArea5" class="inp"><label for="editArea5" class="inp-label">text</label>
</p>
<p class="row">
<input type="text" name="" id="editArea6" class="inp"><label for="editArea6" class="inp-label">text</label>
</p>
</div>
<div class="ib check-box">
<input type="checkbox" name="" id="checkbox2" class="cb"><label for="checkbox2" class="cb-label">Checkbox</label>
</div>
</div>
</div>
</body>
</html>
预览效果:
希望是你想要的效果,望采纳~~
展开全部
<div id="1"> 整个大框
<div id="2">上
<div id="4">左
<ul>
<li><span>text</span>框</</li>
<li><span>text</span>框</</li>
<li><span>text</span>框</</li>
</ul>
checkbox
</div>
</div>
<div id="3">下 span右飘
<div id="5">左
<ul>
<li><span>text</span>框</</li>
<li><span>text</span>框</</li>
<li><span>text</span>框</</li>
</ul>
checkbox
</div>
</div>
</div>
<div id="2">上
<div id="4">左
<ul>
<li><span>text</span>框</</li>
<li><span>text</span>框</</li>
<li><span>text</span>框</</li>
</ul>
checkbox
</div>
</div>
<div id="3">下 span右飘
<div id="5">左
<ul>
<li><span>text</span>框</</li>
<li><span>text</span>框</</li>
<li><span>text</span>框</</li>
</ul>
checkbox
</div>
</div>
</div>
追问
#1 2 3 4 5能不能给我?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询