【问题标题】:HTML select list options lose their CSS font-style when there are too many optionsHTML select list options lose their CSS font-style when there are too many options
【发布时间】:2015-08-04 01:43:13
【问题描述】:

我正在尝试使用自定义字体设置 HTML select 列表的 options 样式。 This works great when there is relatively few options, I'm not sure of the exact amount but I think

https://jsfiddle.net/eympj0yq/

左侧小提琴中的选项适用于指定的字体,但右侧的选项不适用。有没有其他人经历过这种情况,如果有,有什么解决方法吗?如果这有什么不同的话,这发生在 Chrome 44.0.2403.125 上。

编辑:刚刚在 Firefox 39.0 和 Internet Explorer 11 上进行了检查,并且两者都适用,所以它看起来只是 Chrome 的问题。

编辑: 也发现了一个相关的 Chromium 问题,它说选项的限制是 300 https://code.google.com/p/chromium/issues/detail?id=515014。 5 天前开业!

【问题讨论】:

    标签: html css google-chrome


    【解决方案1】:

    我发现另一个与上述问题相关联的问题 https://code.google.com/p/chromium/issues/detail?id=513339 。基本上,由于性能原因,Chrome 开发人员决定在 300 多个选项之后禁用选项样式。

    它已在 Canary 46.0.2468.0 中修复,因此很快就会出现在常规 Chrome 中。

    这是解决问题的修订版http://src.chromium.org/viewvc/blink?view=revision&revision=199776

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多