Base 。 Bootstrap

来源:互联网 发布:js单选按钮文字对齐 编辑:程序博客网 时间:2024/05/11 18:37

官网文档 

file:///C:/Users/Administrator/Desktop/bootstrap-2.3.2/docs/base-css.html#buttons


1、标题

<h1> 到<h6>

2、文本

<p>...</p>

3、铅正文

<p class="lead">...</p>

4、小题正文

<p>  <small>This line of text is meant to be treated as fine print.</small></p>
5、<strong>

<strong>rendered as bold text</strong>
6、斜体

<em>rendered as italicized text</em>
7、对其

    <p class="text-left">Left aligned text.</p>       左对齐    <p class="text-center">Center aligned text.</p>    居中对其    <p class="text-right">Right aligned text.</p>   右对齐

8、重点标示

    <p class="muted">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p>    <p class="text-warning">Etiam porta sem malesuada magna mollis euismod.</p>    <p class="text-error">Donec ullamcorper nulla non metus auctor fringilla.</p>    <p class="text-info">Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis.</p>    <p class="text-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
9、悬停语句

<abbr title="attribute">attr</abbr>

10、大写悬停语句

<abbr title="HyperText Markup Language" class="initialism">HTML</abbr>
11、地址语句

  1. <address>
  2. <strong>Twitter, Inc.</strong><br>
  3. 795 Folsom Ave, Suite 600<br>
  4. San Francisco, CA 94107<br>
  5. <abbr title="Phone">P:</abbr> (123) 456-7890
  6. </address>
  7.  
  8. <address>
  9. <strong>Full Name</strong><br>
  10. <a href="mailto:#">first.last@example.com</a>
  11. </address>
12、标题语句

  1. <blockquote>
  2. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
  3. </blockquote>
13、大段引用

  1. <blockquote>
  2. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
  3. <small>Someone famous <cite title="Source Title">Source Title</cite></small>
  4. </blockquote>
14、大段引用  位置

  1. <blockquote class="pull-right">
  2. ...
  3. </blockquote>
15、清单  无序

  1. <ul>
  2. <li>...</li>
  3. </ul>
16、清单 有序
  1. <ol>
  2. <li>...</li>
  3. </ol>
  1. <ul class="unstyled">
  2. <li>...</li>
  3. </ul>
17、横向排序

  1. <ul class="inline">
  2. <li>...</li>
  3. </ul>
18、标题  内容 格式   (山下 布局)

  1. <dl>
  2. <dt>...</dt>
  3. <dd>...</dd>
  4. </dl>

19、标题 内容 格式  (左右布局)

  1. <dl class="dl-horizontal">
  2. <dt>...</dt>
  3. <dd>...</dd>
  4. </dl>
20、table 格式

    <table class="table table-striped">
     <tr>
    <td>1</td>
    <td>TB - Monthly</td>
    <td>01/04/2012</td>
    <td>Approved</td>
    </tr>
    </table>

21、from 表单提交

  1. <form>
  2. <fieldset>
  3. <legend>Legend</legend>
  4. <label>Label name</label>
  5. <input type="text" placeholder="Type something…">
  6. <span class="help-block">Example block-level help text here.</span>
  7. <label class="checkbox">
  8. <input type="checkbox"> Check me out
  9. </label>
  10. <button type="submit" class="btn">Submit</button>
  11. </fieldset>
  12. </form>

  1. <form class="form-search">
  2. <input type="text" class="input-medium search-query">
  3. <button type="submit" class="btn">Search</button>
  4. </form>

22、内嵌表单

  1. <form class="form-inline">
  2. <input type="text" class="input-small" placeholder="Email">
  3. <input type="password" class="input-small" placeholder="Password">
  4. <label class="checkbox">
  5. <input type="checkbox"> Remember me
  6. </label>
  7. <button type="submit" class="btn">Sign in</button>
  8. </form>

23、卧式表单

  1. <form class="form-horizontal">
  2. <div class="control-group">
  3. <label class="control-label" for="inputEmail">Email</label>
  4. <div class="controls">
  5. <input type="text" id="inputEmail" placeholder="Email">
  6. </div>
  7. </div>
  8. <div class="control-group">
  9. <label class="control-label" for="inputPassword">Password</label>
  10. <div class="controls">
  11. <input type="password" id="inputPassword" placeholder="Password">
  12. </div>
  13. </div>
  14. <div class="control-group">
  15. <div class="controls">
  16. <label class="checkbox">
  17. <input type="checkbox"> Remember me
  18. </label>
  19. <button type="submit" class="btn">Sign in</button>
  20. </div>
  21. </div>
  22. </form>

24、文本框

<input type="text" placeholder="Text input">
25、内容框

<textarea rows="3"></textarea>
26、checkboxes 和 radios

  1. <label class="checkbox">
  2. <input type="checkbox" value="">
  3. Option one is this and that—be sure to include why it's great
  4. </label>
  5.  
  6. <label class="radio">
  7. <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
  8. Option one is this and that—be sure to include why it's great
  9. </label>
  10. <label class="radio">
  11. <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
  12. Option two can be something else and selecting it will deselect option one
  13. </label>
27、oher checkboxes style

  1. <label class="checkbox inline">
  2. <input type="checkbox" id="inlineCheckbox1" value="option1"> 1
  3. </label>
  4. <label class="checkbox inline">
  5. <input type="checkbox" id="inlineCheckbox2" value="option2"> 2
  6. </label>
  7. <label class="checkbox inline">
  8. <input type="checkbox" id="inlineCheckbox3" value="option3"> 3
  9. </label>
28、下拉框

  1. <select>
  2. <option>1</option>
  3. <option>2</option>
  4. <option>3</option>
  5. <option>4</option>
  6. <option>5</option>
  7. </select>
  8.  
  9. <select multiple="multiple">
  10. <option>1</option>
  11. <option>2</option>
  12. <option>3</option>
  13. <option>4</option>
  14. <option>5</option>
  15. </select>
29、扩展表单空间

  1. <div class="input-prepend">
  2. <span class="add-on">@</span>
  3. <input class="span2" id="prependedInput" type="text" placeholder="Username">
  4. </div>
  5. <div class="input-append">
  6. <input class="span2" id="appendedInput" type="text">
  7. <span class="add-on">.00</span>
  8. </div>
30、输入框大小控制

  1. <input class="input-mini" type="text" placeholder=".input-mini">
  2. <input class="input-small" type="text" placeholder=".input-small">
  3. <input class="input-medium" type="text" placeholder=".input-medium">
  4. <input class="input-large" type="text" placeholder=".input-large">
  5. <input class="input-xlarge" type="text" placeholder=".input-xlarge">
  6. <input class="input-xxlarge" type="text" placeholder=".input-xxlarge">
31、禁止输入 复选框

<span class="input-xlarge uneditable-input">Some value here</span>
32、输入框 只能输邮件

<input class="span3" type="email" required>
32、禁止输入 输入框  灰色

<input class="input-xlarge" id="disabledInput" type="text" placeholder="Disabled input here..." disabled>
33、image

  1. <img src="..." class="img-rounded">
  2. <img src="..." class="img-circle">
  3. <img src="..." class="img-polaroid">
34、Boot starp 提供了 很多个小图标  自行查看

      <i class="icon-search"></i>

<i class="icon-search icon-white"></i>


就介绍这么多。












0 0
原创粉丝点击