<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>bootstrap</title>
<style type="text/css">
div{
position: relative;
left:100px;
top:100px;
width:500px;
border:1px solid lightgray;
}
div span{
display: block;
margin:10px;
}
</style>
</head>
<body>
<script src="jquery.min.js"></script>
<link href="bootstrap/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="bootstrap/js/bootstrap/3.3.6/bootstrap.min.js"></script>
<div>
<span class="close">×</span><br>
<span class="caret"></span><br>
<span class="pull-left">文字浮动到左边</span><br>
<span class="pull-right">文字浮动到右边</span><br>
<span class="show">强行显示</span>
<span class="hidden">隐藏</span><!--强行隐藏,位置会出来-->
<span class="show">显示</span>
<span class="invisible">隐藏</span><!--位置不会出来,保留-->
<span class="show">显示</span>
</div>
</body>
</html>

还没有评论,来说两句吧...