UI元素状态伪类选择器
来源:互联网 发布:数据建模师 编辑:程序博客网 时间:2024/06/05 04:31
<!-- 源码-->
<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title>选择器E:hover、E:active和E:focus</title> <style> input[type="text"]:hover{ background: aqua; } input[type="text"]:focus{ background: bisque; } input[type="text"]:active{ background: blue; } </style></head><body><h1>选择器E:hover、E:active和E:focus</h1><form> 姓名:<input type="text" placeholder="请输入姓名"> <br/> 密码:<input type="password" placeholder="请输入密码"></form></body></html>注意的是focus和active的顺序。
<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title>E:enabled伪类选择器和E:disenabled伪类选择器</title> <style> input[type="text"]:disabled{ background: green; } input[type="text"]:enabled{ background: #5c6a72; } </style></head><body><h1>E:enabled伪类选择器和E:disenabled伪类选择器</h1><form> 姓名:<input type="text" placeholder="请输入姓名" disabled> <br/> 密码:<input type="text" placeholder="请输入密码"></form></body></html>
0 0
- 13、UI元素状态伪类选择器
- UI元素状态伪类选择器
- UI元素状态伪类选择器
- CSS3学习笔记 之 UI元素状态伪类选择器
- CSS 3 UI元素状态伪类选择器
- CSS3学习笔记2:UI元素状态伪类选择器
- css3之UI元素状态伪类选择器
- 状态伪类选择器
- 状态伪类选择器
- CSS选择器状态伪类
- CSS伪元素,伪类选择器
- 伪类选择器和伪元素
- css伪类、伪元素选择器
- CSS选择器和伪类、伪元素
- CSS选择器 伪类及伪元素
- CSS伪类、伪元素选择器
- 伪元素和伪类选择器
- CSS选择器之【伪类/元素选择器】
- input设置键盘监听事件
- QML OpenGL
- 购物抛物线
- 使用fuel部署openstack时遇到的问题记录一下
- codeforces 645e
- UI元素状态伪类选择器
- RecyclerView 下拉刷新上拉加载更多
- 获取spring的ApplicationContext几种方式
- 用URL来操作Hadoop
- 数据库面试题
- 只要是搜索引擎能回答的就别问别人……
- 根据label的文字判断高度
- Linux c日志打印
- 史上最全的谷歌公司那些黑科技