html5shiv在idea中怎么引入,HTML5无法在Internet Explorer 11中运行(HTML5 not working in Internet Explorer 11)...

在Internet Explorer 11中,一个网站的HTML5元素出现样式丢失,如<header>、<section>和<footer>标签。添加html5shiv后,虽然部分问题得到解决,但页脚仍无法显示100%宽度。问题源于HTML验证错误,如未关闭的标签。修复这些错误后,网站在IE11中可以正常显示。
摘要由CSDN通过智能技术生成

HTML5无法在Internet Explorer 11中运行(HTML5 not working in Internet Explorer 11)

我刚刚推出了一个网站,但是当我在IE11中查看它时,我所有的造型都消失了! 像这样的所有标签只渲染...content.../header> 。 与section和footer标签相同。

我添加了html5shiv,它修复了一些部分,但现在我的页脚没有显示100%的宽度。

有谁知道为什么这可能会这样做? 该网站位于www.linkup.co.nz。 我不确定我需要发布什么其他信息,但如果要求我可以添加更多信息。 :)

I've just launched a site, but when I view it in IE11, all my styling is gone! All my tags like just render ...content.../header>. Same with section and footer tags.

I added html5shiv, which fixed some parts, but now my footer isn't showing 100% width.

Does anyone know why this may be doing this? The site is at www.linkup.co.nz. I'm not sure what other info I need to post, but I can add more if requested. :)

原文:https://stackoverflow.com/questions/24519948

更新时间:2020-03-29 07:03

最满意答案

您的HTML无法验证。 尝试修复三个错误(即未关闭的标签),我打赌它按预期工作:

第132行,第552栏:看到结束标记部分,但是有开放元素。

`...paint-smart.png" width="271" height="70" alt="Paint Smart" />`

错误行131,第28列:未闭合的元素div。

`

`

Your HTML is not validating. Try fixing the three errors (namely the unclosed tags) and I bet it works as expected:

Line 132, Column 552: End tag section seen, but there were open elements.

`...paint-smart.png" width="271" height="70" alt="Paint Smart" />`

Error Line 131, Column 28: Unclosed element div.

`

`

相关问答

如果命令成功,则execCommand()返回true ,否则返回false 。 因此你可以这样做: if (!document.execCommand('FormatBlock', null, 'H1')) {

document.execCommand('FormatBlock', null, '

');

}

虽然其他浏览器似乎也适用于

... execCommand() returns true if the command is successful, or fals

...

你必须修改你的CSS来对齐所有浏览器中的下拉箭头,包括IE11。 请使用这个CSS。 #nav li{

display: inline-block;

position: relative; /*Added Line*/

}

#nav ul li.active:after {

border-left: 20px solid transparent;

border-right: 20px solid transparent;

content: "";

border-top: 13px sol

...

我怀疑这是因为同时使用use值和ngModel。 它应该是一个或另一个。 更改为以下内容:

I have the suspicion that it's because use use value and ngModel at the same time. It should be either one or t

...

你指定一个有效的doctype吗? 通过将Internet切换到标准模式,您可以使Internet Explorer更具兼容性。 http://msdn.microsoft.com/en-us/library/bb250395.aspx#cssenhancements_topic2 您是否使用浏览器重置CSS文件? 这可以帮助将版本合在一起。 http://meyerweb.com/eric/tools/css/reset/ 请注意IE的CSS错误: http : //www.positionis

...

转到控制面板 - > 程序 - > 程序和功能 转到Windows功能并禁用Internet Explorer 11 然后点击显示已安装的更新 搜索Internet Explorer 右键单击Internet Explorer 11 - > 卸载 使用Internet Explorer 10执行相同操作 重启你的电脑 在这里安装Internet Explorer 10 (旧破碎的链接 ) 我觉得没关系 Go to Control Panel -> Programs -> Programs and

...

dragDrop()不是Dart Element类中的方法,因此您无法调用它。 您是否尝试过使用Element类中定义的拖放事件? Dart提供填充程序,使这些工作在IE9中。 如果你不能使用Dart的拖放api来跨浏览器工作,那么你应该提交一个bug。 Found a solution by adding a little javascript to my main HTML filer (please tell me if you have a better idea):

<

...

对于任何感兴趣的人来说,解决方案主要是将我的TypeScript输出更改为ES5而不是ES6。 尽管我使用的是各种ES6垫片,但这还不足以让Internet Explorer工作。 更新: 将TypeScript编译器输出更改为ES5在tsconfig.json文件中完成: {

"compilerOptions": {

"target": "es5"

}

}

For anyone interested, the solution was mainly to change my T

...

这可能会解决它: success: function(data) {

eval('var jSON = '+data);

$('#to-change').html(jSON['respond'] + 'profile');

} //end of success

编辑:确保您的返回数据采用格式,例如: {'respond':'it worked as expected','.....':'....'}

在我的vbscripts中,我返回: response.write "{'S

...

问题是由使用空div作为锚点引起的。 放一个  或其他一些空白角色解决了这个问题。 The problem was caused by using empty divs as the anchor point. Putting a   or some other whitespace character solved the issue.

您的HTML无法验证。 尝试修复三个错误(即未关闭的标签),我打赌它按预期工作: 验证www.linkup.co.nz 第132行,第552栏:看到结束标记部分,但是有开放元素。 `...paint-smart.png" width="271" height="70" alt="Paint Smart" />`

错误行131,第28列:未闭合的元素div。 `

`

Your HTML is not validating.

...

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值