Bootstrap文本框的前缀与后缀

prepend-and-append-finish.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>文本框的前缀与后缀</title>
<link href="../bootstrap/css/bootstrap.css" rel="stylesheet">
<!--[if lt IE 9]>
      <script src="../bootstrap/js/html5.js"></script>
<![endif]-->
</head>

<body>
<div class="container">
  <h1 class="page-header">文本框的前缀与后缀</h1>
  <div class="input-prepend input-append">
 <span class="add-on">&yen;</span><input type="text"><span class="add-on">.00</span>
 </div>
 <div class="input-append">
 <input type="text"><button class="btn" type="button">搜索</button>
 </div>
         
</div>
<script src="../bootstrap/js/jquery-1.7.2.min.js"></script> 
<script src="../bootstrap/js/bootstrap.js"></script>
</body>
</html>

猜你喜欢

转载自beckham-xiao.iteye.com/blog/2396528