【问题标题】:Is placeholder supports IE 8?占位符是否支持 IE 8?
【发布时间】:2013-04-11 12:36:24
【问题描述】:

我认为 IE 8 不支持占位符,但是当我加载 www.skydrive.com 时,它带有占位符文本“someone@example.com & password”

在 IE 8 中有什么方法可以在没有 jQuery 等的情况下访问占位符?

【问题讨论】:

    标签: jquery internet-explorer internet-explorer-8 haml onedrive


    【解决方案1】:

    根据can I useplaceholder属性来自IE10。

    Modernizr 是一个很好的库,用于进行诸如此类的特征检测,他们也有一个great list of polyfils you can use

    【讨论】:

    • 如何在 haml 中从我的桌面设置 jQuery 路径?
    • 我建议您开始另一个问题,您可以详细说明 HAML 的问题
    【解决方案2】:

    只需将其添加到您的标题中。希望对你有帮助

    <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />
    

    【讨论】:

      猜你喜欢
      • 2017-12-14
      • 2012-06-05
      • 2017-04-15
      • 2011-10-26
      • 2014-07-13
      • 2012-01-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多