一些浏览器兼容问题 [英] Some Browser Compatible Problem

查看:77
本文介绍了一些浏览器兼容问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想检查浏览器,如果是IE,那么



I want to check browser and if is it IE then

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





i想添加这条线



这个我试过



i head section







i want to add this line

for this i tried

i head section


  <!--[if lt IE 9]>

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

-->







但它不起作用




but it not working

推荐答案

你需要学习一点关于条件评论 [ ^ ]。请仔细阅读本页,并特别注意向下隐藏条件评论 [ ^ ]和向下显示条件评论 [ ^ ]。



您可以很容易地看到您的条件评论缺少 [endif] 部分。请阅读我指出的文件。



问候,

- Manfred
You have to learn a bit About Conditional Comments[^]. Please read this page carefully and pay special attention to Downlevel-hidden conditional comments[^] and Downlevel-revealed conditional comments[^].

You can easily see that your conditional comment is missing the [endif] part. Please read the documentation I pointed you to.

Regards,
— Manfred


这篇关于一些浏览器兼容问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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