开发者

display text only in chrome

i know that

<!--[if !IE]&g开发者_开发百科t;--> 
TEXT
 <!--<![endif]-->

will not display TEXT in IE. But i need this to display only in Chrome. How can i do that?


Get a library like jQuery and check if the browser is Google Chrome.

The following question's answer contains a code example: Distinguish Chrome from Safari using jQuery.browser

Or you could check out this blog post, which does the same but without a framework.


You can do it using CSS, like answered in another question

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜