Bootstrap标准页面模版_V3.3.4

来源:互联网 发布:ims网络是什么意思 编辑:程序博客网 时间:2024/05/09 02:16
<!DOCTYPE html><html lang="zh">  <head>     <!--网页页面字符集-->    <meta charset="utf-8">    <!--让IE使用最新的渲染模式-->    <meta http-equiv="X-UA-Compatible" content="IE=edge">    <!--针对移动设备,网站显示宽度等于设备屏幕显示宽度,内容缩放比例为1:1-->    <meta name="viewport" content="width=device-width, initial-scale=1">    <!--将下面的 <meta> 标签加入到页面中,可以让部分国产浏览器默认采用高速模式渲染页面:-->    <meta name="renderer" content="webkit">    <!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->    <title>Bootstrap Basic Template</title>    <!-- Bootstrap -->    <!-- 新 Bootstrap 核心 CSS 文件 -->    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css">    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->    <script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->    <script src="http://cdn.bootcss.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>    <!--下面这一大块的注释是说:"为了让IE9以下的IE8浏览器支持响应式和HTML5标签.需要引入下面两个JS文件"-->    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->    <!--[if lt IE 9]>      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>    <![endif]-->  </head>  <body>    <!-- 英:jQuery (necessary for Bootstrap's JavaScript plugins) -->    <!--中:必须在JS文件引入之前引入JQ文件,这里src引用的是本地.线上建议使用CDN引用)    <script src="js/jquery-2.1.3.min.js"></script>    <!-- Include all compiled plugins (below), or include individual files as needed -->    <script src="js/bootstrap.min.js"></script>  </body></html>

Css if hack

这一块是CSS IF HACK

 <!--[if lt IE 9]>      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>    <![endif]-->

更多关于说明

Css if hack条件语法< !--[if IE]> Only IE <![endif]-->仅所有的WIN系统自带IE可识别< !--[if IE 5.0]> Only IE 5.0 <![endif]-->只有IE5.0可以识别< !--[if gt IE 5.0]> Only IE 5.0+ <![endif]-->IE5.0包换IE5.5都可以识别< !--[if lt IE 6]> Only IE 6- <![endif]-->仅IE6可识别< !--[if gte IE 6]> Only IE 6/+ <![endif]-->IE6以及IE6以下的IE5.x都可识别<!--[if lte IE 7]> Only IE 7/- <![endif]-->仅IE7可识别< !--[if gte IE 7]> Only IE 7/+ <![endif]-->IE7以及IE7以下的IE6IE5.x都可识别<!--[if IE 8]> Only IE 8/- <![endif]-->仅IE8可识别<!--[if IE 9]> Only IE 9/- <![endif]-->仅IE9可识别注:在 if  后加 lt gte有不同效果 (参加其它参数同理)<!–[if IE 8]> = IE8IE8可识别<!–[if lt IE 8]> = IE7或更低版本<!–[if gte IE 8]> = 高于或者等于IE8版本
0 0
原创粉丝点击