bootstrap 图片:响应式与外形样式
发布时间:2020-12-17 20:53:11 所属栏目:安全 来源:网络整理
导读:响应式是指一个网站能兼容多个终端,响应式图片即是,图片大小能自适应屏幕(比例不变) ! doctype html html lang ="en" head meta charset ="utf-8" meta http-equiv ="X-UA-Compatible" content ="IE=edge" meta name ="viewport" content ="width=device
响应式是指一个网站能兼容多个终端,响应式图片即是,图片大小能自适应屏幕(比例不变) <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width,initial-scale=1"> <!-- Bootstrap --> <link href="__STATIC__/插件/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet"> <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询(media queries)功能 --> <!-- 警告:通过 file:// 协议(就是直接将 html 页面拖拽到浏览器中)访问页面时 Respond.js 不起作用 --> <!--[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]--> <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery,所以必须放在前边) --> <script src="__STATIC__/插件/jquery-3.3.1.min.js"></script> <script src="__STATIC__/插件/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script> <title>bootstrap</title> <style> </style> </head> <body> <h4>非响应式图片</h4> <img src="__STATIC__/images/timg.jpg" > <h4>响应式图片</h4> <!-- img-rounded:圆角 img-circle:圆形 img-thumbnail:缩略图 --> <img src="__STATIC__/images/timg.jpg" class="img-responsive img-thumbnail"> </body> </html> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
热点阅读