HTML5模板在Internet Explorer上不起作用,如何解决? [英] HTML5 template not working on Internet Explorer, how to solve it?

查看:90
本文介绍了HTML5模板在Internet Explorer上不起作用,如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在HTML5中制作了一个模板,该模板可与Chrome和Firefox一起使用,但不能与Internet Explorer(在IE 8上测试)一起使用.

I made a template in HTML5 which is working with Chrome and Firefox but not working with Internet Explorer (tested on IE 8).

我该如何解决这个问题?

How can I solve this problem?

推荐答案

只需在模板中添加"display:none".适用于即11

just add "display:none" to your templates. Works for i.e. 11

<template id="fancyTemplate" style="display:none"></template>

这篇关于HTML5模板在Internet Explorer上不起作用,如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆