浏览器支持的消息弹出插件 [英] Browser support message pop up plugin

查看:164
本文介绍了浏览器支持的消息弹出插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有像插件的https:// code .google.com / p / IE6升级预警/ http://browser-update.org ,是非常方便的,以警告用户不要使用IE6 / 7。

I know there are plugins like https://code.google.com/p/ie6-upgrade-warning/ and http://browser-update.org that are extremely handy to warn users to not use IE6/7.

但如果我想更进一步,并自定义检测说对不起,IE不支持,请下载Chrome?有没有这样的插件在那里?谢谢

But what if I would like to go a step further and customise the detection to say "Sorry, IE is not supported, Please download Chrome"? Are there such plugins out there? Thanks

推荐答案

Stack Overflow是一个伟大的地方,让你正在寻找的答案,但有时你正在寻找的答案是不是你的答案实际上需要的。在这种情况下,我必须给你之后,因为让您前者会严重损害你和你的同伴。

Stack Overflow is a great place to get the answers you're looking for, but sometimes the answer you're looking for is not the answer you actually need. In this case, I must give you the later, since giving you the former would be a great disservice to you and your peers.

不要试图检测单个浏览器和漏斗流量到其他浏览器 - 这将是对企业不利,不利于你的职业生涯,而坏了整个网络作为一个整体。我的意思是不尊重,我只是为别人谁一直在观察网超过十年说话。

Do not attempt to detect a single browser, and funnel your traffic into another browser - it will be bad for business, bad for your career, and bad for the entire web as a whole. I mean no disrespect, I merely speak as somebody who has been observing the web for over a decade.

6今天谁是在Internet Explorer的用户不存在,因为这是他们最喜欢的浏览器,因此要求他们改变只会阻挠他们,并有可能从您的网站赶他们走。在凯尔·辛普森的谈话浏览器版本更多关于这一点,相关的点都死了。作为知名开发商尼古拉斯Zakas说,的是时候停止指责的Internet Explorer

The users who are on Internet Explorer 6 today are not there because it's their favorite browser, so asking them to change is only going to frustrate them, and potentially drive them away from your site. More on this, and related points in Kyle Simpson's talk Browser Versions are Dead. As the well-known developer Nicholas Zakas said, It's time to stop blaming Internet Explorer.

至于Internet浏览器在一般情况下,最新的分期是令人难以置信。 Internet Explorer 9的标注在产品的根本改变,显示网页标准越来越支持。 Internet Explorer的10发布后迅速(惊天动地2年发布周期的想法),并显示了甚至没有镀铬尚不支持多CSS3功能的支持。

As far as Internet Explorer in general, the latest installments are incredible. Internet Explorer 9 marked a radical change in the product, showing an increasing support for web standards. Internet Explorer 10 was released quickly thereafter (shattering the idea of a 2-year release cycle), and shows support for many "CSS3" features that not even Chrome yet supported.

行业本身似乎AP preciating Internet Explorer的今天,包括高科技巨人的青少狮拉波特和史蒂夫·吉布森的。 LEA Verou( Dabblet 创始人的棱镜 W3C科员)曾公开表示,IE的的一个蹩脚的浏览器多个版本前,IE10其实很好,不只是体面。此外,它是宣布说:jQuery的2.0现在已经为Chrome,Safari浏览器和Firefox比Internet Explorer的详细补丁和垫片!

The industry itself seems to be appreciating Internet Explorer today, including tech-giants Leo Laporte and Steve Gibson. Lea Verou (creator of Dabblet, Prism, and W3C Staff Member) has publicly stated that "IE was a crappy browser several versions ago. IE10 is actually very good, not just decent". Also it was announced that "jQuery 2.0 now has more patches and shims for Chrome, Safari, and Firefox than for Internet Explorer!"

我发现一次又一次的最近当Internet Explorer 10是不正确的渲染的东西,它是由大通常由开发人员尝试一些巧招来检测Internet Explorer并成为了替代内容而引起的。最近的一个例子是从一个网站试图只IE7及以上提供内容,请执行以下操作:

I've found time and time again lately that when Internet Explorer 10 is rendering something incorrectly, it is by and large typically caused by a developer attempting some "clever trick" to detect Internet Explorer and serve up alternative content. One recent example was from a site attempting to deliver content only to IE7 and up, doing the following:

if ( $.browser.msie && $.browser.version.substr(0, 1) < 7 ) {
    /* Assume this is IE6 or below, and deliver substandard experience */
}

这小把戏提示版本10.0实际上是Internet Explorer中1,并发表了可怕的经历。修复此code,从而让IE设计的Chrome相同的经历,导致了恢复网站 - 一切都只是工作的。这在今天并不少见,它的已经发生过,一遍又一遍。

This little trick suggested version "10.0" was actually Internet Explorer 1, and delivered a horrible experience. Fixing this code, resulting in IE getting the same experience designed for Chrome, resulted in a restored site - everything just worked. This isn't uncommon today, it has happened over, and over again.

而不是专注于如何可以得到你的访问者安装新的软件来查看您的网站,转而专注于基于标准的书写标记,采用最佳实践,如逐步增强,功能检测,必要时polyfills,并好吗与您的网站优雅地降低在旧的浏览器。毕竟,您的网站并不需要看起来相同在每个浏览器在那里。

Rather than focusing on how you can get your visitors to install new software to view your website, focus instead on writing standards-based markup, using best-practices like progressive enhancement, feature-detection, polyfills when necessary, and be alright with your site gracefully degrading in older browsers. After all, your website doesn't need to look the same in every browser out there.

最后,今天测试的Internet Explorer成本几乎消失了。虽然它不适用于Mac和老版本的Windows,IE浏览器的每一个版本(6至10,现代和桌面)可通过BrowserStack使用(的 3个月的免费,微软提供),以及通过在以上的 modern.IE 。更不用说在浏览器仿真,这兴奋 CSS-技巧的克里斯Coyier。

Lastly, the cost of testing Internet Explorer today has nearly vanished. Although it's not available on Mac, and older versions of Windows, every single version of Internet Explorer (6 through 10, Modern and Desktop) is available for use via BrowserStack (3 months free, courtesy of Microsoft), as well as via free downloadable virtual machines over at modern.IE. Not to mention the in-browser emulation, which excited Chris Coyier of CSS-Tricks.

至于Internet Explorer中,大卫·斯托里(戏recenty,以及W3C工作组成员)的未来提出的它看起来非常明亮

With regards to the future of Internet Explorer, David Storey (recenty of Opera, and a W3C WG member) suggests it's looking very bright.

这篇关于浏览器支持的消息弹出插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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