ie7,ie8和ie9的最佳占位符polyfil脚本 [英] The best placeholder polyfil script for ie7, ie8 and ie9

查看:198
本文介绍了ie7,ie8和ie9的最佳占位符polyfil脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您建议使用哪个占位符polyfill脚本来提供ie7,8&中的占位符支持。 9。

Which placeholder polyfill script do you recommend that I use to provide placeholder support in ie7, 8 & 9.

我见过以下列表,并想知道这里是否有人与他们或其他任何不在列表中的里程数以及他们认为最佳

I've seen the following list from the modernizer team and was wondering if anybody here had some mileage with them or any others not on the list and what they think is the best

我的评估标准是:


  • 文件大小

  • 没有现代化工作的能力/ yepnope

  • 速度(没有疯狂的循环)

  • 稳定性,多少如在野外使用?

  • 检测原生占位符能力而不是打扰

  • File Size
  • Ability to work without modernizer/yepnope
  • Speed (no crazy looping)
  • Stability, how much as it been used in the wild?
  • Detect native placeholder ability and not bother running

我记得有一天我常常在输入的onclick事件中写一行代表占位符支持 - 大声笑,但说实话我不能打扰支持这些可怕的浏览器(看这个有趣的)。至少IE10终于朝着正确的方向发展。

I remember a day when I used to write a line or so in the onclick event of an input for placeholder support - lol, but to be honest I can't bothered to support these horrible browsers (watch this funny). At least IE10 is finally moving in the right direction.

谢谢......

推荐答案

我建议您使用 jQuery Placeholder polyfill ://twitter.com/mathias\"rel =noreferrer> Mathias Bynens 。

I recommend you use the jQuery Placeholder polyfill by Mathias Bynens.

  • It supports IE6+
  • It is 2k minified
  • It does its own feature detection (Modernizr isn't needed)
  • The code is straightforward. The jQuery selection will vary depending on your selector
  • It is the one polyfill recommended by HTML5Please and is listed on the Modernizr Wiki you mentioned
  • It doesn't execute the code if it isn't needed

这篇关于ie7,ie8和ie9的最佳占位符polyfil脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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