如何做一个“其他”在IE HTML条件? [英] How do I make an "else" in an IE HTML conditional?

查看:97
本文介绍了如何做一个“其他”在IE HTML条件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<!--[if lt IE 9]>
    This is less then IE9
ELSE
    this is all browsers: firefox, chrome, etc.
<![endif]-->

如何在HTML中执行此操作?我想做一个else...

How do I do this in my HTML? I want to do an "else" ...

推荐答案

你不是在寻找别的, <![if!IE]> < something或其他> <! - [endif]> (注意,这不是注释)。

You're not looking for an else, you're looking for <![if !IE]> <something or other> <!--[endif]> (note that this is not a comment).

<!--[if IE]>
   You're using IE!
<![endif]-->
<![if !IE]>
   You're using something else!
<![endif]>

您可以在条件注释这里

这篇关于如何做一个“其他”在IE HTML条件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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