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
精彩评论