css中input输入框点击背景及边框变化 CSS不常用属性果然不用就想不起来啊。 记录一下做个备忘。 用:focus伪类就可以实现 input:focus { border: 2px solid yellow; }