【BootStrap】<meta http-equiv="X-UA-Compatible" content="IE=edge" /> 的说明

简介: 转载请注明出处:http://blog.csdn.net/qq_26525215本文源自【大学之旅_谙忆的博客】首先,这语句我是在BootStrap4中文文档上看到的。 这个网址号称是国内最先翻译BootStrap4的中文文档。

转载请注明出处http://blog.csdn.net/qq_26525215

本文源自大学之旅_谙忆的博客

首先这语句我是在BootStrap4中文文档上看到的。

这个网址号称是国内最先翻译BootStrap4的中文文档。
该网址是:http://wiki.jikexueyuan.com/project/bootstrap4/getting-started/introduction/
然而我想说的是这源码其实都是BootStrap3的。
英文的BootStrap4的模板是下面这个:
英文网址:https://v4-alpha.getbootstrap.com/getting-started/introduction/

<!DOCTYPE html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
  </head>
  <body>
    <h1>Hello, world!</h1>

    <!-- jQuery first, then Tether, then Bootstrap JS. -->
    <script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
  </body>
</html>

我英文不好所以我一般都是看到中文的文档但我发现这个问题后我才知道我国的有些翻译人员很不负责任。真的、
至于我是为什么发现这个问题的还是得从

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

此句说起。

一开始写的时候我并没有写这句后来看BootStrap4的中文文档时发现了这一句我就谷歌了一下发现如下的内容:

X-UA-Compatible是针对ie8新加的一个设置对于ie8之外的浏览器是不识别的
这个区别与content="IE=7"在无论页面是否包含<!DOCTYPE>指令
都像是使用了 Windows Internet Explorer 7的标准模式。
而content="IE=EmulateIE7"模式遵循<!DOCTYPE>指令。
对于多数网站来说它是首选的兼容性模式。
<meta http-equiv="X-UA-Compatible" content="edge" />

Edge 模式通知 Windows Internet Explorer 以最高级别的可用模式显示内容这实际上破坏了“锁定”模式。

当然看完后差不多明白了就是使用IE时如果版本不够会使用最新的内核解析器也就是使用你安装的浏览器的最新的内核解析器

然后又在http://stackoverflow.com 网站上找到了类似的问题

What does <meta http-equiv=“X-UA-Compatible” content=“IE=edge”> do?

网址是http://stackoverflow.com/questions/6771258/what-does-meta-http-equiv-x-ua-compatible-content-ie-edge-do

在这里我才知道此句其实对于BootStrap4来说是代码冗余了的。
因为BootStrap4已经不再支持IE9
我也只看了个一点点懂英文好的请自行去上面的网站查看

但是我想BootStrap才设计人员不可能会犯如此低级的错误啊代码冗余
然后我就去查找英文版的BootStrap4结果果然模板并不是中文档翻译的那样。。。。

在这里也给同我一样英文不太好的朋友一个建议。
如果在看中文文档发现什么问题时记得去看看英语原文。可能会有不一样的收获。如果看不懂可以借助翻译工具。虽然翻译工具翻译的可能不太通顺但是让自己理解我相信还是可以的只是速度没看中文档那么快

另外我也想对国内翻译技术文档的人说声我很感谢国内有这么一些翻译团队在努力真的很感谢。让我这种不怎么懂英文的人也能很好的自学。

希望大家都能少一些疏忽与遗漏。

也快过年了祝大家新的一年中学习进步工资涨涨涨


本文章由[谙忆]编写 所有权利保留。
欢迎转载分享是进步的源泉。

转载请注明出处http://blog.csdn.net/qq_26525215

本文源自大学之旅_谙忆的博客

目录
相关文章
|
5月前
head 插件 Content-Type header [application/x-www-form-urlencoded] is not supported
head 插件 Content-Type header [application/x-www-form-urlencoded] is not supported
42 1
|
6月前
|
JSON 数据格式
Content type ‘multipart/form-data;boundary=------57031299820747271;charset=UTF-8‘ not supported的解决方案
Content type ‘multipart/form-data;boundary=------57031299820747271;charset=UTF-8‘ not supported的解决方案
60 0
|
10月前
|
XML JSON 前端开发
详解Http的Content-Type
1.概述 HTTP(HyperText Transfer Protocol),超文本传输协议。超文本(Hypertext)是一种结构化的文本,其中包含了超链接(Hyperlink)的能力,通过超链接可以在不同文档之间创建关联和跳转。 传统的文本是线性的,按照一定的顺序排列的,而超文本则打破了线性结构,允许文本中的某些词、短语或图像与其他文档或资源之间建立关联。这些关联通过超链接来实现,用户可以点击超链接来跳转到其他相关的文档、网页、图片、视频或其他媒体资源。
193 1
|
10月前
|
Java 测试技术
body-parser:unsupported content encoding 错误
最近遇到了一个奇怪的问题,关于body-parser报错,我本地调用没问题,使用测试工具没问题,这种方案都没问题,就和我对接的程序调用有问题,于是开始了面向百度编程,查到了两种解决方案:
401 0
body-parser:unsupported content encoding 错误
|
XML JSON 前端开发
Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported
讲述ajax请求后端传参报 Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported问题处理
 Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported
|
XML JSON JavaScript
二、HTTP Content-Type详解
二、HTTP Content-Type详解
262 1
|
前端开发 Windows
【BootStrap】<meta http-equiv="X-UA-Compatible" content="IE=edge" /> 的说明
【BootStrap】<meta http-equiv="X-UA-Compatible" content="IE=edge" /> 的说明
188 0
【BootStrap】<meta http-equiv="X-UA-Compatible" content="IE=edge" /> 的说明
|
Web App开发 Windows 前端开发
对http-equiv中"X-UA-Compatible"属性的理解
X-UA-Compatible是自从IE8新加的一个设置,对于IE8以下的浏览器是不识别的。 通过在meta中设置X-UA-Compatible的值,可以指定网页的兼容性模式设置。
2743 0
|
XML 数据格式 前端开发

热门文章

最新文章