相关疑难解决方法(0)

如何在我的样式选择下拉列表中模仿键盘行为?

我正在使用jQuery 1.11.我想设置我的选择下拉菜单,因为,让我们面对它,默认看起来很糟糕.所以我发现了一些风格

.selectMenu {
  font-family: 'Oxygen', sans-serif;
  font-size: 20px;
  height: 50px;
  -webkit-appearance: menulist-button;
}

.select-hidden {
  display: none;
  visibility: hidden;
  padding-right: 10px;
}

.select {
  cursor: pointer;
  display: inline-block;
  position: relative;
  font-size: 16px;
  color: #fff;
  width: 220px;
  height: 42px;
}

.select-styled {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: gray;
  padding: 11px 12px;
  -webkit-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
}
.select-styled:after {
  content: "";
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-color: #fff …
Run Code Online (Sandbox Code Playgroud)

html css jquery jquery-ui css3

6
推荐指数
2
解决办法
458
查看次数

标签 统计

css ×1

css3 ×1

html ×1

jquery ×1

jquery-ui ×1