css-技巧
css 技巧
隐藏input 输入后的背景色
- 方法一
在html中为form标签添加属性 autocomplete=”off”
autocomplete
属性适用于<form>
,以及<input>
中以下 类型:text, search, url, telephone, email, password, datepickers, range 以及 color。
就是控制是否显示 账号密码的历史记录下拉菜单
1 |
|
- 方法二
设置 css1
2
3
4
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill{
-webkit-box-shadow: 0 0 0px 1000px #fff inset /* 背景色是什么,设置相同颜色,这里body的默认背景色是白色 */
}
icon(图标动效)
效果为 点击 图标 旋转方向。需要动态绑定 class实现。
1 |
|
本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!