focus-within
来源:互联网 发布:菜鸟网络是什么 编辑:程序博客网 时间:2024/06/11 21:08
css伪类 :focus-within
可以非常方便处理获取焦点状态。
<div class="container"> <label for="text">请输入你的名字</label> <input type="text" /> </div>
.container:focus-within { background-color: #fff; }
当div.container 获取到焦点时会有#fff的背景,同理div.container下面的其它元素获取到焦点时,它依然还有#fff的背景。 阅读全文
0 0
- focus-within
- 新CSS伪类:focus-within
- focus
- focus
- Focus
- FOCUS Lifer
- 集中力(focus)
- jquery focus
- 方向-Focus
- Language Focus
- 阻止focus
- Language Focus
- audio focus
- focus-hooks
- focus default
- Points Within
- Points Within
- within group
- oracle数据库触发器
- NLP计算文档相似度之doc2vec
- error LNK2019: 无法解析的外部符号 / fatal error LNK1120: 2 个无法解析的外部命令
- mysql笔记一
- python 帮助文档下载地址
- focus-within
- Mongodb数据库必要的维护,如备份、恢复、导入、导出
- C++Primer笔记 十六 模板与泛型编程
- Java图片缩略图裁剪水印缩放旋转压缩转格式-Thumbnailator图像处理
- 配置spring+Mybatis事务时产生的jar包冲突问题
- PHP 新特性
- Dockerfile概述
- license
- 进程上下文和中断上下文详解