Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想要一个焦点元素的所有子元素的选择器
我尝试了以下方法,但没有成功
#myElement > * :focus { /*stuff*/}
focus 仅适用于接受键盘输入的元素。尝试根据“Focus”和“blur”等事件从 javascript 切换一个类