欢迎使用 Cmd Markdown 啊啊啊啊啊啊啊啊

JPG.jpg

15323075204286802.jpg

<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap 101 Template</title> <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet"> <!--[if lt IE 9]> <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> </body> <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script> <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.js"></script> </html> <section class="section" style="margin:0 0 5px 0;padding:1em;"> <Row :gutter="16"> <Col :lg="4" :xl="2"> <Button type="primary" style="width:100%;" @click="toArticleList"> <Icon type="ios-arrow-back" /> 文章列表 </Button> </Col> <Col :lg="14" :xl="10"> <Input v-model="postForm.title" placeholder="请输入100个字以内的文章标题" style="width:100%;" /> </Col> <Col :lg="6" :xl="10"> <Select v-model="postForm.code_style" style="width:240px" placeholder="选择编辑器样式"> <Option v-for="(item, index) in codeStyleList" :value="item.label" :key="index">{{ item.label }}</Option> </Select> </Col> <Col :lg="12" :xl="2"> <Button type="success" style="width:100%;" @click="onSubmit">保存</Button> </Col> </Row> </section>

实例精选

很多很多的现成的例子:http://v3.bootcss.com/getting-started/#examples

表格

<div class="container">   <table class="table table-striped">     <tr><th>序号</th><th>姓名</th><th>年龄</th></tr>     <tr><td>888</td><td>张三</td><td>1000</td></tr>   </table> </div>

加上table基础样式之后才会附加表格样式
加上table基础样式之后才会附加表格样式
加上table基础样式之后才会附加表格样式

表格样式

属性 作用
table 基础样式
table-striped 条纹状 表格
table-bordered 带边框的表格
table-hover 鼠标悬停
table-condensed 紧缩表格

状态类

属性 描述 作用
active 活动灰
success 成功绿
info 提示蓝
warning 警告黄
danger 危险红
响应式表格

将任何 .table 元素包裹在 .table-responsive 元素内,即可创建响应式表格,其会在小屏幕设备上(小于768px)水平滚动。当屏幕大于 768px 宽度时,水平滚动条消失。
星空01.jpg

按钮

按钮样式可以添加给a标签,但是避免使用除botton之外的其他标签,不同设备兼容性方面可能会出现问题

<div class="container">   <button type="button" class="btn btn-danger">按钮</button> </div>
预定义样式

btn-default    默认样式   白
btn-primary   首选项    紫
btn-success    成功     绿
btn-info      一般信息   蓝
btn-warning   警告     橙
btn-danger    危险     红
btn-link      链接     蓝字下划线
#####尺寸
btn-lg      大按钮
btn-default    默认尺寸
btn-sm      小按钮
btn-xs      超小尺寸

<a href="" class="btn btn-default btn-lg" role="button">default</a>

通过给按钮添加 .btn-block 类可以将其拉伸至父元素100%的宽度,而且按钮也变为了块级(block)元素。

激活状态
<button type="button" class="btn btn-primary btn-lg **active**">Primary button</button> <a href="#" class="btn btn-primary btn-lg **active**" role="button">Primary link</a>
禁用状态
<button type="button" class="btn btn-lg btn-primary" **disabled**>Primary button</button>

图片

为图片添加** .img-responsive **类可以让图片支持响应式布局。
如果需要让使用了 .img-responsive 类的图片水平居中,请使用 .center-block 类,不要用 .text-center。

图片形状
<img src="girl.jpg" class="img-rounded"> <img src="girl.jpg" class="img-circle"> <img src="girl.jpg" class="img-thumbnail">
阅读更多
0.049747s