boostsrap 图像与图标
来源:互联网 发布:go java 对比 编辑:程序博客网 时间:2024/06/02 05:27
(1)图像
图像提供了4种风格的样式
1、img-responsive:响应式图片,主要针对于响应式设计
2、img-rounded:圆角图片
3、img-circle:圆形图片
4、img-thumbnail:缩略图片
只需要在<img>上加上指定的类名即可
<!doctype html><html lang="en"><head> <meta charset="UTF-8"><title>图像</title><link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"></head><body><div class="container"> <div class="row"> <div class="col-sm-4"> <img alt="140x140" src="http://placehold.it/140x140"> <div>默认图片</div> </div> <div class="col-sm-4"> <img class="img-rounded" alt="140x140" src="http://placehold.it/140x140"> <div>圆角图片</div> </div> <div class="col-sm-4"> <img class="img-circle" alt="140x140" src="http://placehold.it/140x140"> <div>圆形图片</div> </div> <div class="row"> <div class="col-sm-6"> <img class="img-thumbnail" alt="140x140" src="http://placehold.it/140x140"> <div>缩略图</div> </div> <div class="col-sm-6"> <img class="img-responsive" alt="140x140" src="http://placehold.it/140x140" /> <div>响应式图片</div> </div> </div> </div></div> </body></html>
(2)图标
添加class:glyphicon+指定图标即可
<!doctype html><html lang="en"><head> <meta charset="UTF-8"><title>图标</title><link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"></head><body><span class="glyphicon glyphicon-search"></span><span class="glyphicon glyphicon-asterisk"></span><span class="glyphicon glyphicon-plus"></span><span class="glyphicon glyphicon-cloud"></span> </body></html>图标名称可以从名称上查找
如果需要定制,则可以在图标上查找
0 0
- boostsrap 图像与图标
- 图标和图像大小
- 带icon图像的图标
- 图标/图像按钮的实现
- IOS自定义图标和图像
- ios图标和默认图像
- IOS应用程序图标和启动图像分析
- 解决ListView图标图像效果失真
- iOS7官方推荐图标和图像尺寸
- iOS7官方推荐图标和图像尺寸
- iOS7官方推荐图标和图像尺寸
- flex air 图标和启动图像
- IOS7官方推荐图标和图像尺寸
- iPhone && iPad 图标和初始屏幕图像
- iOS7官方推荐图标和图像尺寸
- IOS7官方推荐图标和图像尺寸
- Xcode概览:添加图标、图像和特效
- Bootstrap示例——表格图像图标
- java流与文件——ZIP文档
- 开篇介绍--学习swift的背景和学习计划
- ListView删除Item后,自动刷新adapter
- ceph存储 UIO 子系统结构介绍
- 四大组件之ContentProvider
- boostsrap 图像与图标
- 深度学习与大数据的比较 Deep Learning vs Big Data: Who owns what?
- 天下武功,唯快不破
- centos 6.5 下面tomcat的安装
- js转换Date日期格式
- MagicalRecord入门教程
- maven插件启动tomcat和jetty
- workflow结束的流程重启
- Python“Non-ASCII character 'xe5' in file”报错问题