<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>布局小Demo</title> </head> <style> *{margin: 0;padding: 0; font-size: 12px; color: #646464;} .clear{ clear: both;} dl,ul,li,dd,dt{ list-style: none;} .w1000{ 1000px;margin: 0 auto;} .newPeopleGoTit i { 4px;height: 25px;display: inline-block;background-color: #7ebf41;margin-top: 18px;float: left; } .newPeopleGoTit .tzTitle { font: 18px/18px "微软雅黑", "Arial"; color: #646464;float: left; margin-top: 26px;margin-left: 11px;} .newPeopleGoTit p{display: inline-block;margin-top: 26px;margin-left: 11px;color: #646464;} .newPeopleGoBody{ 998px;border: 1px solid #ccc;height: 220px;margin-top: 20px;box-shadow: 0 0 3px #ccc inset;} .npgbheader{padding: 20px 20px 0 20px;} .npgbheader h3,.npgbheader div{display: inline-block;font-size: 16px;} .npgbheader span{padding: 0 20px;} .npgbheader div{float: right; font-size: 12px;} .npgbleft{ float: left;padding-left: 20px;} .npgbleft dl{ display: inline-block; margin-top: 20px; border-left: 1px solid #ccc; padding: 0 60px; line-height: 50px;} .npgbleft dl.first{ border:none;} .npgbleft dl .txtIndex{ text-indent: 1em; font-size: 24px; font-weight: bold;} .npgbright{ 300px;float: right;padding-right: 20px;position: relative;} .npgbright input{position: absolute;top: 50px;right: 20px; 300px; text-indent: 1em; height: 40px; border: 1px solid #ccc; outline: none;} .npgbright span{margin-top: 20px; display:inline-block;} .npgbright .rightspan{float: right;} .npgbright a{ display: block; 300px; height: 40px; text-align: center;position: absolute;top: 110px; line-height: 40px;background: #3a81cc; color: #fff; font-size: 14px;text-decoration: none;} </style> <body> <div class="w1000"> <div class="newPeopleGoTit"> <i></i> <h2 class="tzTitle">新手体验标</h2> <p>为了让新用户能更快的了解网站的服务所推出的短期快速投资体验标</p> </div> <div class="newPeopleGoBody"> <div class="npgbheader"> <h3>贷e贷新手体验标1535</h3> <span>发标时间2015-6-1500:01</span> <div>*从未进行过任何投资的用户专享</div> </div> <div class="npgbleft"> <dl class="first"> <dt>投资期限</dt> <dd class="txtIndex">30天</dd> </dl> <dl> <dt>年化收益</dt> <dd class="txtIndex">16%</dd> </dl> <dl> <dt>付息方式</dt> <dd class="txtIndex">到期付息</dd> </dl> </div> <div class="npgbright"> <span>剩余时间 23:59:59</span> <span class="rightspan">投标金额上限 3000元</span> <input type="text" onfocus="this.value=='输入金额为50的倍数'?this.value='':void(0);" onblur="this.value.length>0?0:this.value='输入金额为50的倍数';" value="输入金额为50的倍数"> <a href="" class="npgbbtn">我要投标</a> </div> <div class="clear"></div> </div> </div> </body> </html>