您可以尝试运行以下代码来实现 :focus 伪类 示例 现场演示 input:focus { background-color: orange; } Subject Student: Age: 登录后复制输出