form:focus-within{ background-color: aqua; } input:focus{ background-color: red; } 复制代码. 当input标签获取到焦点后,背景颜色变成了red, ...
確定! 回上一頁