bootstrap2.3.2常用標籤的使用

Franson發表於2016-06-27
<!DOCTYPE html>
<html lang="zh_CN">
<head>
<title>Bootstrap 101 Template</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/docs.css" rel="stylesheet">
<link href="css/google-code-prettify.css" rel="stylesheet">

</head>
<body>
    <div class="container">
        <div class="row">
            <div class="span3 bs-docs-sidebar">
                <ul class="nav nav-list bs-docs-sidenav">
                    <li><a href="#overview"><i class="icon-chevron-right"></i>
                            預覽</a></li>
                    <li><a href="#transitions"><i class="icon-chevron-right"></i>
                            過渡</a></li>
                    <li><a href="#tableview"><i class="icon-chevron-right"></i>
                            表格</a></li>
                    <li><a href="#dropdowns"><i class="icon-chevron-right"></i>
                            下拉選單</a></li>
                    <li><a href="#scrollspy"><i class="icon-chevron-right"></i>
                            Scrollspy</a></li>
                    <li><a href="#tabs"><i class="icon-chevron-right"></i> 選項卡</a></li>
                    <li><a href="#tooltips"><i class="icon-chevron-right"></i>
                            工具提示</a></li>
                    <li><a href="#popovers"><i class="icon-chevron-right"></i>
                            Popover</a></li>
                    <li><a href="#alerts"><i class="icon-chevron-right"></i>
                            警示</a></li>
                    <li><a href="#buttons"><i class="icon-chevron-right"></i>
                            按鈕</a></li>
                    <li><a href="#collapse"><i class="icon-chevron-right"></i>
                            摺疊</a></li>
                    <li><a href="#carousel"><i class="icon-chevron-right"></i>
                            旋轉木馬</a></li>
                    <li><a href="#typeahead"><i class="icon-chevron-right"></i>
                            預輸入</a></li>
                    <li><a href="#affix"><i class="icon-chevron-right"></i> 附件</a></li>
                </ul>
            </div>

            <div class="span9">
                <div class="row-fluid">
                    <h1>內容欄</h1>
                </div>
                <section id="overview">
                    <div class="row-fluid">
                        <p class="muted">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;故事講述<b>湯姆</b>從小就是個玩牌高手,所以他的好朋友,<i>肥皂、艾迪和培根</i>決定各湊兩萬五千英鎊,讓湯姆去參加一場黑社會高額賭金的牌局。

                        </p>
                        <div class="text-right">
                            <small>來自 <cite title="《娛樂週刊》">《娛樂週刊》</cite></small>
                        </div>

                        <p class="text-warning">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>湯姆</strong>從頭到尾不知情,其實整個賭金根本就是個大騙局。於是湯姆不但輸光所有的錢,還倒欠賭場主人五十萬英鎊。湯姆在一個星期內不能還清,他和他朋友們的手指和他老爸的酒吧都將不保。湯姆一夥想盡各種可能的湊錢辦法,最後決定搶劫隔壁的毒犯。
                        </p>

                        <p class="text-error">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;而隔壁的毒犯同時也正計劃搶劫他們的毒品供應商。湯姆一夥的計劃聽起來簡單,但執行時卻狀況百出。突發的狀況讓這夥人不由得越陷越深。事情變得十分複雜,場面變得十分混亂。幾個小混混發現整個事件已經發展到超出他們的想象,於是極力想逃脫,但是已經……
                        </p>
                        <address>
                            <strong>王皓和小雪科技有限公司</strong><br> 山東,濟南 經十西路 28723 號<br>
                            159 6577 9823
                        </address>
                        <address>
                            <strong>E-Mail</strong><br> <a href="#">
                                hello@example.com</a>
                        </address>
                        <p class="text-left">此致 敬禮</p>
                        <p class="text-center">Franson</p>
                        <p class="text-right">2016-06-09</p>
                    </div>
                </section>
                <section id="transitions">
                    比如
                    <code>&lt;section&gt;</code>
                    就應該是使用行內包裝。<br>
                    <pre>public class Student{<br>
                    private String name;
                        <br>}</pre>
                </section>
                <section id="tableview">
                    <table class="table table-striped">
                        <thead>
                            <tr>
                                <th>First Name</th>
                                <th>Last Name</th>
                                <th>Username</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>Wang</td>
                                <td>fusen</td>
                                <td>franson</td>
                            </tr>
                            <tr>
                                <td>Li</td>
                                <td>xiansheng</td>
                                <td>franson</td>
                            </tr>
                            <tr>
                                <td>Wang</td>
                                <td>fusen</td>
                                <td>franson</td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td>Hu</td>
                                <td>min</td>
                                <td>amin</td>
                            </tr>
                        </tfoot>
                    </table>
                    <p>
                        斑馬紋表格
                        <code>.table-striped</code>
                        <code>.table-hover</code>
                    </p>
                    <table class="table table-striped table-bordered table-hover">
                        <thead>
                            <tr>
                                <th>First Name</th>
                                <th>Last Name</th>
                                <th>Username</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>Wang</td>
                                <td>fusen</td>
                                <td>franson</td>
                            </tr>
                            <tr>
                                <td>Li</td>
                                <td>xiansheng</td>
                                <td>franson</td>
                            </tr>
                            <tr>
                                <td>Wang</td>
                                <td>fusen</td>
                                <td>franson</td>
                            </tr>


                            <tr>
                                <td>Hu</td>
                                <td>min</td>
                                <td>amin</td>
                            </tr>
                        </tbody>
                    </table>
                    <p>
                        被壓縮的表格
                        <code>.table-condensed</code>
                    </p>
                    <table
                        class="table table-striped table-bordered table-hover table-condensed">
                        <thead>
                            <tr>
                                <th>First Name</th>
                                <th>Last Name</th>
                                <th>Username</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>Wang</td>
                                <td>fusen</td>
                                <td>franson</td>
                            </tr>
                            <tr>
                                <td>Li</td>
                                <td>xiansheng</td>
                                <td>franson</td>
                            </tr>
                            <tr>
                                <td>Wang</td>
                                <td>fusen</td>
                                <td>franson</td>
                            </tr>
                            <tr>
                                <td>Hu</td>
                                <td>min</td>
                                <td>amin</td>
                            </tr>
                        </tbody>
                    </table>
                    <p>
                        帶顏色的行
                        <code>.success .error .warning .info</code>
                    </p>
                    <table class="table table-striped table-bordered table-hover">
                        <caption class="text-center text-info">
                            <strong>使用者列表<code>&lt;caption&gt;</code></strong>
                        </caption>
                        <thead>
                            <tr>
                                <th>First Name</th>
                                <th>Last Name</th>
                                <th>Username</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr class="success">
                                <td>success</td>
                                <td>fusen</td>
                                <td>franson</td>
                            </tr>
                            <tr class="warning">
                                <td>warning</td>
                                <td>xiansheng</td>
                                <td>franson</td>
                            </tr>
                            <tr class="error">
                                <td>error</td>
                                <td>fusen</td>
                                <td>franson</td>
                            </tr>
                            <tr class="info">
                                <td>info</td>
                                <td>min</td>
                                <td>amin</td>
                            </tr>
                        </tbody>
                    </table>
                </section>
                <form action="#">
                    <fieldset>
                        <legend>預設表單樣式</legend>
                        <label>使用者名稱</label> <input type="text" placeholder="請輸入使用者名稱...">
                        <span class="help-block">這裡是區塊級別的幫助性文字</span> <label
                            class="checkbox"> <input type="checkbox">勾選一下
                        </label> <input type="submit" class="btn" value="提交">
                    </fieldset>
                </form>
                <form action="#" class="form-search">
                    <fieldset>
                        <legend>搜尋表單</legend>
                        <input type="text" class="search-query" placeholder="搜尋內容...">
                        <input type="submit" class="search-query btn" value="查詢">
                    </fieldset>
                </form>
                <form class="form-inline">
                    <fieldset>
                        <legend>行內表單</legend>
                        <input type="text" class="input-small" placeholder="Email...">
                        <input type="text" class="input-small" placeholder="密碼...">
                        <label class="checkbox"><input type="checkbox">記住我</label>
                        <input type="submit" class="btn">
                    </fieldset>
                </form>
                <form class="form-horizontal">
                    <fieldset>
                        <legend>水平表單</legend>
                        <div class="control-group">
                            <label class="control-label" for="inputEmail">Email</label>
                            <div class="controls">
                                <input type="text" id="inputEmail" placeholder="Email">
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label" for="inputPassword">密碼</label>
                            <div class="controls">
                                <input type="password" id="inputPassword" placeholder="密碼">
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="controls">
                                <label class="checkbox"> <input type="checkbox">
                                    記住我
                                </label>
                                <button type="submit" class="btn">登入</button>
                            </div>
                        </div>
                    </fieldset>
                </form>
                <form class="form-horizontal">
                    <fieldset>
                        <legend>水平表單2</legend>
                        <div class="controls">
                            <label>Email</label> <input type="text" id="inputEmail"
                                placeholder="Email"> <label>密碼</label> <input
                                type="password" id="inputPassword" placeholder="密碼"> <label>自我介紹</label>
                            <textarea rows=3></textarea>
                            <label class="checkbox"> <input type="checkbox">
                                記住我
                            </label>
                            <button type="submit" class="btn">登入</button>
                        </div>
                    </fieldset>
                </form>
                <form>
                    <fieldset>
                        <legend>核取方塊與單選框</legend>
                        <label class="checkbox"><input type="checkbox" value="">選項一</label>
                        <label class="checkbox"><input type="checkbox" value="">
                            選項二</label> <label class="color"> <input type="color">顏色選擇
                        </label> <br> <label class="radio"><input type="radio"
                            name="options" value="">選擇一</label> <label class="radio"><input
                            type="radio" name="options" value="">選擇二</label>
                    </fieldset>
                </form>
                <form>
                    <fieldset>
                        <legend>行內核取方塊與單選框</legend>
                        <label class="checkbox inline"><input type="checkbox"
                            value="">選項一</label> <label class="checkbox inline"><input
                            type="checkbox" value=""> 選項二</label> <label class="radio inline"><input
                            type="radio" name="options" value="">選擇一</label> <label
                            class="radio inline"><input type="radio" name="options"
                            value="">選擇二</label>
                    </fieldset>
                </form>
                <form>
                    <fieldset>
                        <legend>下拉框選項</legend>
                        <select>
                            <optgroup label="你的日常生活">
                                <option value="">吃飯</option>
                                <option value="">睡覺</option>
                                <option value="">打豆豆</option>
                            </optgroup>
                        </select><br> <select multiple="multiple">
                            <optgroup label="你的日常生活">
                                <option value="">吃飯</option>
                                <option value="">睡覺</option>
                                <option value="">打豆豆</option>
                            </optgroup>
                        </select>
                    </fieldset>
                </form>
                <div class="input-prepend input-append">
                    <input class="span6" placeholder="輸入數值..."
                        id="appendedPrependedInput" type="text"> <input
                        type="button" value="搜尋" class="btn"> <input type="button"
                        value="選項" class="btn">
                </div>
                <div class="input-append">
                    <input class="span2" id="appendedDropdownButton" type="text">
                    <div class="btn-group">
                        <button class="btn dropdown-toggle" data-toggle="dropdown">
                            搜尋 <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu">
                            <li>使用者</li>
                            <li>人物</li>
                            <li>電影</li>
                        </ul>
                    </div>
                </div>
                <a href="#" class="btn">我是連結<i class="icon-search"></i></a>
            </div>
        </div>
    </div>
    <script src="js/jquery.js"></script>
  <script src="js/application.js"></script>
    <script src="js/bootstrap.min.js"></script>
</body>
</html>

 

相關文章