HTML IF语句 [英] HTML IF Statement
本文介绍了HTML IF语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只想知道如何在简单的HTML中执行 if
-statement。就像 [if IE6]
thingy
我想这样做
[IF 5> 6]
语法怎么样?我似乎无法找到除 [If!IE6]
之类的东西,甚至有可能?
非常感谢
编辑:我想比较一下标量数字,因为我有一个动态创建的HTML。例如 [If 4 == 6]
。我不想检查IE浏览器版本。
解决方案
不在HTML中。考虑使用 JavaScript
代替。
I just wanna know how to do an if
-statement in simple HTML. Like the [if IE6]
thingy
I'd like to do something like this
[IF 5>6]
How's the syntax? I can't seem to find anything but [If!IE6]
and things like that, is that even possible?
Thanks a lot
Edit: I want to compare just scalar numbers, cause I have a dynamically created HTML. For example [If 4 == 6]
. I DON'T WANT TO CHECK IE VERSIONS.
解决方案
Not in HTML. Consider using JavaScript
instead.
这篇关于HTML IF语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文