0

font-weight当您在 a selectin上使用非默认值时,文本似乎会被截断Google Chrome

在此处输入图像描述

http://jsbin.com/wediwoqara/1/edit?html,css,输出

CSS:

select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0 10px;
  height: 30px;
  border: 1px solid #ccc;
  border-radius: 0;
  background-color: #fff;
}

.broken {
  font-weight: 700;
}

HTML

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <select class="broken">
    <option>Markets Served</option>
  </select>
  <select class="works">
    <option>Markets Served</option>
  </select>
</body>
</html>

Google Chrome版本:

  • Version 53.0.2785.143 (64-bit)OS X (10.11.4)
  • Version 54.0.2840.59 (64-bit)OS X (10.11.4)

据我所知,这是一个错误?如果有任何我没有看到的解决方案,我会很感兴趣。

4

0 回答 0