欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

Bootstrap實現(xiàn)表格樣式、表單布局的實例代碼

1. 表格的一些樣式

創(chuàng)新互聯(lián)是一家網(wǎng)站設(shè)計、網(wǎng)站建設(shè),提供網(wǎng)頁設(shè)計,網(wǎng)站設(shè)計,網(wǎng)站制作,建網(wǎng)站,定制網(wǎng)站開發(fā),網(wǎng)站開發(fā)公司,于2013年開始是互聯(lián)行業(yè)建設(shè)者,服務(wù)者。以提升客戶品牌價值為核心業(yè)務(wù),全程參與項目的網(wǎng)站策劃設(shè)計制作,前端開發(fā),后臺程序制作以及后期項目運營并提出專業(yè)建議和思路。

Bootstrap 實現(xiàn)表格樣式、表單布局的實例代碼

舉例:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>My Test bootstrap</title>
  <link rel="stylesheet" href="./css/bootstrap.min.css"> 
  <script type="text/javascript" src="./js/bootstrap.min.js"></script>
</head>
<body>
 <table class="table table-striped">
 <caption>這是一個測試表格</caption>
 <thead>
  <tr>
   <th>姓名</th>
   <th>年齡</th>
   <th>地區(qū)</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>小胡子</td>
   <td>26</td>
   <td>陜西</td>
  </tr>
  <tr>
   <td>大胡子</td>
   <td>26</td>
   <td>北京</td>
  </tr>
  </tbody>
</table>
</body>
</html>

頁面效果:

Bootstrap 實現(xiàn)表格樣式、表單布局的實例代碼

2. 表格行或單元格的樣式

Bootstrap 實現(xiàn)表格樣式、表單布局的實例代碼

舉例:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>My Test bootstrap</title>
  <link rel="stylesheet" href="./css/bootstrap.min.css"> 
  <script type="text/javascript" src="./js/bootstrap.min.js"></script>
</head>
<body>
 <table class="table table-striped">
 <caption>這是一個測試表格</caption>
 <thead>
  <tr>
   <th>姓名</th>
   <th>年齡</th>
   <th>地區(qū)</th>
  </tr>
 </thead>
 <tbody>
  <tr class="info">
   <td>小胡子</td>
   <td>26</td>
   <td>陜西</td>
  </tr>
  <tr class="warning">
   <td>大胡子</td>
   <td>26</td>
   <td>北京</td>
  </tr>
  </tbody>
</table>
</body>
</html>

頁面效果:

Bootstrap 實現(xiàn)表格樣式、表單布局的實例代碼

3. 表單布局

(1)垂直表單:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>My Test bootstrap</title>
  <link rel="stylesheet" href="./css/bootstrap.min.css"> 
  <script type="text/javascript" src="./js/bootstrap.min.js"></script>
</head>
<body>
<form role="form">
 <div class="form-group">
  <label for="name">姓名</label>
  <input type="text" class="form-control" id="name" placeholder="請輸入姓名">
 </div>
 <div class="form-group">
  <label for="inputfile">選擇文件</label>
  <input type="file" id="inputfile">
 </div>
 <button type="submit" class="btn btn-default">提交</button>
</form>
</body>
</html>

效果:

Bootstrap 實現(xiàn)表格樣式、表單布局的實例代碼

(2)內(nèi)聯(lián)表單:它的所有元素是內(nèi)聯(lián)的,向左對齊的,標(biāo)簽是并排的

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>My Test bootstrap</title>
  <link rel="stylesheet" href="./css/bootstrap.min.css"> 
  <script type="text/javascript" src="./js/bootstrap.min.js"></script>
</head>
<body>
<form role="form" class="form-inline">
 <div class="form-group">
  <label for="name">姓名</label>
  <input type="text" class="form-control" id="name" placeholder="請輸入姓名">
 </div>
 <div class="form-group">
  <label for="inputfile">選擇文件</label>
  <input type="file" id="inputfile">
 </div>
 <button type="submit" class="btn btn-default">提交</button>
</form>
</body>
</html>

效果:

Bootstrap 實現(xiàn)表格樣式、表單布局的實例代碼

(3)水平表單:水平表單與其他表單不僅標(biāo)記的數(shù)量上不同,而且表單的呈現(xiàn)形式也不同

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>My Test bootstrap</title>
  <link rel="stylesheet" href="./css/bootstrap.min.css"> 
  <script type="text/javascript" src="./js/bootstrap.min.js"></script>
</head>
<body>
<form role="form" class="form-horizontal">
 <div class="form-group">
    <label for="name" class="col-sm-2 control-label">姓名</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="name" placeholder="請輸入姓名">
    </div>
 </div>
 <div class="form-group">
    <label for="inputfile" class="col-sm-2 control-label">選擇文件</label>
    <div class="col-sm-10">
      <input type="file" id="inputfile">
    <div>
 </div>
 <div class="form-group">
   <div class="col-sm-12">
    <button type="submit" class="btn btn-default">提交</button>
   </div>
 </div>
</form>
</body>
</html>

效果:

Bootstrap 實現(xiàn)表格樣式、表單布局的實例代碼

總結(jié)

以上所述是小編給大家介紹的Bootstrap 實現(xiàn)表格樣式、表單布局的實例代碼,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對創(chuàng)新互聯(lián)網(wǎng)站的支持!

網(wǎng)頁名稱:Bootstrap實現(xiàn)表格樣式、表單布局的實例代碼
地址分享:http://www.aaarwkj.com/article42/psohec.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供ChatGPT商城網(wǎng)站、微信公眾號、云服務(wù)器、響應(yīng)式網(wǎng)站品牌網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)頁設(shè)計公司
日本在线观看成人大片| 国产一区二区精品性浆| 国产亚洲欧美日韩精品| 91九色最新国产在线| 欧美久久久久久久黑人| 成人午夜欧美熟妇小视频| 日韩亚洲欧美不卡在线| 麻豆视频在线观看传媒| 亚洲av区一区二区三| 日韩精品毛片精品一区到三区| 日本少妇一区二区99| 亚洲精品在线免费av| 国产免费一级av剧情| 青青草原这里只有精品| 日韩深夜成人在线视频| 亚洲亚洲精品av在线动| 日韩一区二区三区中文字幕| 亚洲综合色婷婷七月丁香| 日本高清精品视频在线| 亚洲成年人黄色小说网站| 91精品蜜臀国产综合久久久久久| 精品一区二区在线欧美日韩| 四虎精品永久在线视频| 国产91白丝在线观看| 九九热超在线视频精品| 免费在线观看污污污网站| 97视频在线观看观看| 国产亚洲精品久久久闺蜜| 日韩免费av在线网站| 日韩国产在线一区二区| 欧美日韩一区二区三区久久精品| 伊人久久大香线蕉av色婷婷色| 无人区乱码一区二区三区| 国产国产成人精品久久蜜| 人妻中文字幕在线一二区| 中国人妻一区二区三区| 精品综合亚洲中文字幕| 免费亚洲老熟熟女熟女熟女| 国产成人免费公开视频| 日韩免费高清不卡视频| 初爱视频教程完整版韩国 |