qianduan
select_pan
<html>
<head>
<style type="text/css">
.selectpan{ width: 65%; background-color: blue; height: 100px; }
#selection { position: relative; border-radius: 5px; padding: 1px; background: #ccc; }
button, input, pre, select, textarea
{ font-family: "Microsoft Yahei",Arial,sans-serif,Arial,STHeiti;
font-size: 12px;
line-height: 150%;
}
#selection .selection_con {
background: #fff;
border-radius: 5px;
position: relative;
min-height: 106px;
padding: 10px 15px 5px 15px;
position: relative;
font-size: 14px;
}
#selection .selection_con dl {
line-height: 20px;
padding: 0 0 7px 0;
border-bottom: dotted 1px #ccc;
position: relative;
}
.clearfix {
display: block;
}
.clearfix:after {
display: block;
visibility: hidden;
clear: both;
height: 0;
content: ".";
}
#selection .selection_con dl dd a.active2 {
color: #fff;
background: #ffa000;
border-radius: 5px;
}
#selection .selection_con dl dd a {
display: block;
float: left;
padding: 0 5px;
margin-right: 13px;
float: left;
margin-top: 7px;
position: relative;
z-index: 2;
}
a {
text-decoration: none;
color: #000;
cursor: pointer;
}
</style>
</head>
<body>
<div class="selectpan" id="selection">
<div class="selection_con">
<dl class="clearfix zIndex3">
<dt style="float:leftpadding-top: 1px;width:15%;display:inline;">居室:</dt>
<dd style="float:right;display:inline;padding-top: 1px; width: 85%">
<div class="clearfix t">
<a href="//sz.ziroom.com/z/nl/z2-d23008679-b611100902.html" class="active2">不限</a>
<a href="//sz.ziroom.com/z/nl/z2-d23008679-b611100902-u1.html">1居</a>
<a href="//sz.ziroom.com/z/nl/z2-d23008679-b611100902-u2.html">2居</a>
<a href="//sz.ziroom.com/z/nl/z2-d23008679-b611100902-u3.html">3居</a>
<a href="//sz.ziroom.com/z/nl/z2-d23008679-b611100902-u4.html">4居</a>
<a href="//sz.ziroom.com/z/nl/z2-d23008679-b611100902-u5.html">4居以上</a>
</div>
</dd>
</dl>
<dl class="clearfix zIndex3">
<dt style="float:leftpadding-top: 1px;width:15%;display:inline;">居室:</dt>
<dd style="float:right;display:inline;padding-top: 1px; width: 85%">
<div class="clearfix t">
<a href="//sz.ziroom.com/z/nl/z2-d23008679-b611100902.html" class="active2">不限</a>
<a href="//sz.ziroom.com/z/nl/z2-d23008679-b611100902-u1.html">1居</a>
<a href="//sz.ziroom.com/z/nl/z2-d23008679-b611100902-u2.html">2居</a>
<a href="//sz.ziroom.com/z/nl/z2-d23008679-b611100902-u3.html">3居</a>
<a href="//sz.ziroom.com/z/nl/z2-d23008679-b611100902-u4.html">4居</a>
<a href="//sz.ziroom.com/z/nl/z2-d23008679-b611100902-u5.html">4居以上</a>
</div>
</dd>
</dl>
</div>
</div>
</body>
</html>
serchkuang
<!DOCTYPE html> <html> <head> <title>Bootstrap 模板</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- 引入 Bootstrap --> <!-- 新 Bootstrap 核心 CSS 文件 --> <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> <!-- 可选的Bootstrap主题文件(一般不使用) --> <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap-theme.min.css"></script> <!-- jQuery文件。务必在bootstrap.min.js 之前引入 --> <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script> <!-- 最新的 Bootstrap 核心 JavaScript 文件 --> <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <style type="text/css"> .clear{ clear:both; } </style>> <body> <h1>Hello, world!</h1> <!-- jQuery (Bootstrap 的 JavaScript 插件需要引入 jQuery) --> <div style="padding: 100px 100px 10px;"> <form class="bs-example bs-example-form" role="form"> <div class="row"> <div > <div > <div style="padding-top: 1px;float:left;"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> zu <span class="caret"></span> </button> <ul class="dropdown-menu"> <li><a href="#">功能</a></li> <li><a href="#">另一个功能</a></li> <li><a href="#">其他</a></li> <li class="divider"></li> <li><a href="#">分离的链接</a></li> </ul> </div><!-- /btn-group --> <input style="padding-top: 1px;float:left;width: 50%" type="text" class="form-control" > <button class="btn btn-default" type="button">搜索</button> <div id=""></div> </div> <div class="clear"></div> <div style="height: 30px;margin-top: 10px;margin-left: 10%"> <a href="#">Mailbox <span class="badge">50</span></a> <a href="#">百家湖 <span class="badge">78</span></a> </div> </div><!-- /.col-lg-6 --><br> </div><!-- /.row --> </form></div> </body> </html>
foot
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap 模板</title>
</head>
<style type="text/css">
.footer {
margin-left: -20px;
margin-right: -20px;
padding-left: 20px;
padding-right: 20px;
}
.footer {
text-align: center;
padding: 30px 0;
margin-top: 70px;
border-top: 1px solid #e5e5e5;
background-color: #f5f5f5;
}
ul, ol {
padding: 0;
margin: 0 0 10px 25px;
}
ul, menu, dir {
display: block;
list-style-type: disc;
-webkit-margin-before: 1em;
-webkit-margin-after: 1em;
-webkit-margin-start: 0px;
-webkit-margin-end: 0px;
-webkit-padding-start: 40px;
}
.footer {
text-align: center;
padding: 30px 0;
margin-top: 70px;
border-top: 1px solid #e5e5e5;
background-color: #f5f5f5;
}
.footer-links li:first-child {
padding-left: 0;
}
.footer-links li {
display: inline;
padding: 0 2px;
}
li {
line-height: 20px;
}
li {
display: list-item;
text-align: -webkit-match-parent;
}
a {
color: #0088cc;
text-decoration: none;
}
body {
margin: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 20px;
color: #333333;
background-color: #ffffff;
}
</style>
<body>
<footer class="footer">
<div class="container">
<p>在宁皓网学会使用 Bootstrap 创建真正的网站项目</p>
<ul class="footer-links">
<li><a href="http://ninghao.net">宁皓网</a></li>
<li class="muted">·</li>
<li><a href="http://ninghao.net/course">视频教程</a></li>
</ul>
</div>
</footer>
</body>
buju
<html> <head> <style type="text/css"> h2.pos_left { position: relative; left: -20px } h2.pos_right { position: relative; left: 20px } #main { width: 600px; margin: 0 auto; background-color: blue; position: relative; } #abs { width: 300px; position: absolute; background-color: red; left: 32px; top: 20px; } .news { background-color: blue; border: solid 1px black; float: left; } .news img{ float: left; } .news p{ float: right; } .clear{ clear:both; } .clear1{ content: "."; height: 0px; visibility: hidden; display: block; clear: both; } </style> </head> <body> <div class="news"> <img src="img/1.png" /> <p>some text</p> </div><div class="clear1">1</div> <h1>hello</h1> </body> </html>
浙公网安备 33010602011771号