开发者

display text only in chrome

开发者 https://www.devze.com 2023-02-23 10:10 出处:网络
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

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

精彩评论

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