【发布时间】:2014-05-15 16:28:42
【问题描述】:
当我有一个广泛的选择列表时,与 mac 相比,它在 Chrome(或任何其他浏览器)上的宽度在 Windows 操作系统上更宽。有没有一种简单的方法来实现一致的宽度?
例如,如果你在windows和mac上打开http://jsfiddle.net/8Rxsc/5/,windows中选择框的宽度是295px,而在mac上是278px。
<body>
<select>
<option selected>Select One</option>
<option>One </option>
<option>Two Two</option>
<option>Three Three Three </option>
<option>Four Four Four Four </option>
<option>Five Five Five Five Five </option>
<option>Six Six Six Six Six Six </option>
<option>Seven Seven Seven Seven Seven Seven Seven</option>
<option>Eight Eight Eight Eight Eight Eight Eight Eight </option>
<option>Nine Nine Nine Nine Nine Nine Nine Nine Nine </option>
<option>Ten Ten Ten Ten Ten Ten Ten Ten Ten Ten </option>
</select>
</body>
【问题讨论】:
标签: html css windows macos google-chrome