Css 选择标签问题

Css 选择标签问题,css,Css,我在select标记中使用了以下css: select { background-color: transparent; border: 1px solid #A96800; color: #fff; font-family: "Verdana","Lucida Fax","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif; font-size: 10pt; height: 21px; margin-bot

我在
select
标记中使用了以下css:

select {
  background-color: transparent;
  border: 1px solid #A96800;
  color: #fff;
  font-family: "Verdana","Lucida Fax","Lucida Grande","Lucida Sans   Unicode",Arial,sans-serif;
  font-size: 10pt;
  height: 21px;
  margin-bottom: 5px;
  padding-left: 3px;
  width: 260px;
}

此css也会影响文本。

您无法看到选项,因为在css中,您将文本的颜色设置为白色

color: #fff;
只需删除上面的行,使css看起来像:

select {
  background-color: transparent;
  border: 1px solid #A96800;
  font-family: "Verdana","Lucida Fax","Lucida Grande","Lucida Sans   Unicode",Arial,sans-serif;
  font-size: 10pt;
  height: 21px;
  margin-bottom: 5px;
  padding-left: 3px;
  width: 260px;
}
现在您也可以查看您的选项

以下是最新的小提琴:


希望这有帮助。

你想问什么?不清楚你想说什么。对你的问题做更详细的解释。这甚至不是一个问题。但是,如果我想象你的问题是什么,你说的“文本”是指常规文本(而不是select中的文本,它在逻辑上是由CSS规则设计的),那么你没有正确地关闭select。我已经应用了select标记。但它会影响标签文本颜色。请参考位置: