Bootstrap 按钮图片
2018-03-12 00:00
676 查看
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
</head>
<body>
<div class="container">
<button type="button" class="btn btn-default">default</button>
<button type="button" class="btn btn-primary">primary</button>
<button type="button" class="btn btn-success">success</button>
<button type="button" class="btn btn-info">info</button>
<button type="button" class="btn btn-warning">warning</button>
<button type="button" class="btn btn-link">link</button>
<button type="button" class="btn btn-danger">danger</button>
</div>
<div class="div">
<button type="button" class="btn btn-info btn-lg">lg-info</button>
<button type="button" class="btn btn-info">info</button>
<button type="button" class="btn btn-info btn-sm">sm-info</button>
<button type="button" class="btn btn-info btn-xs">xs-info</button>
<button type="button" class="btn btn-default btn-block disabled">hello</button>
<!--btn-block可以把按钮变为块元素-->
<a href="#" class="btn btn-default btn-lg active" role="button">default</a>
<input type="button" name="" class="btn btn-default" value="input">
<!--firefox 使用input可能有bug不推荐使用Input-->
<img src="img/1.png" alt="呵" class="img-circle"> <!--图片呈椭圆形-->
<img src="img/2.png" alt="呵" class="img-rounded"><!--图片带圆角边框样式-->
<img src="img/3.png" alt="呵" class="img-thumbnail"><!--图片变小-->
</div>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
</head>
<body>
<div class="container">
<button type="button" class="btn btn-default">default</button>
<button type="button" class="btn btn-primary">primary</button>
<button type="button" class="btn btn-success">success</button>
<button type="button" class="btn btn-info">info</button>
<button type="button" class="btn btn-warning">warning</button>
<button type="button" class="btn btn-link">link</button>
<button type="button" class="btn btn-danger">danger</button>
</div>
<div class="div">
<button type="button" class="btn btn-info btn-lg">lg-info</button>
<button type="button" class="btn btn-info">info</button>
<button type="button" class="btn btn-info btn-sm">sm-info</button>
<button type="button" class="btn btn-info btn-xs">xs-info</button>
<button type="button" class="btn btn-default btn-block disabled">hello</button>
<!--btn-block可以把按钮变为块元素-->
<a href="#" class="btn btn-default btn-lg active" role="button">default</a>
<input type="button" name="" class="btn btn-default" value="input">
<!--firefox 使用input可能有bug不推荐使用Input-->
<img src="img/1.png" alt="呵" class="img-circle"> <!--图片呈椭圆形-->
<img src="img/2.png" alt="呵" class="img-rounded"><!--图片带圆角边框样式-->
<img src="img/3.png" alt="呵" class="img-thumbnail"><!--图片变小-->
</div>
</body>
</html>
相关文章推荐
- bootstrap入门【按钮和图片】
- bootstrap框架---表格、按钮、图片
- Bootstrap全局CSS样式之按钮和图片
- Bootstrap风格的按钮 BButton(把图标做成字体,可以省下很多图片资源)
- bootstrap之按钮和图片
- Bootstrap-CSS-按钮-图片-辅助类-响应式
- 学习笔记6-bootstrap 表格、表单、按钮以及图片
- 4--bootstrap笔记--按钮和图片
- bootstrap——css样式(五、按钮和图片)
- Bootstrap(1)__Bootstrap基础<页面排版,图片,按钮,表格,表单>
- bootstrap 学习笔记 - 4 (按钮 + 图片 + 辅助类)
- bootstrap快速入门笔记(八)-按钮,响应式图片
- [学习笔记] bootstrap (三): 按钮,图片,图标
- Bootstrap入门(六)按钮和图片
- IE7下按钮<input>不显示自定义背景图片
- jQuery图片左右滚动代码 有左右按钮实例
- IE7下按钮<input>不显示自定义背景图片
- Bootstrap学习总结笔记(4)-- 基本样式之按钮
- 为按钮控件添加图片的方法
- unity给按钮贴图添加图片