in Codex

去除Webkit搜索框样式

样式如下:

input[type=search] {
    -webkit-appearance: none;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button{
    display: none;
}

说明:

  1. search-decoration,描述文字,同placeholder
  2. search-cancel-button,×按钮
  3. appearance,默认边框样式

Write a Comment

Comment