比如输入框触交渐变在原来的属性添加 :.form-control{-webkit-transition: all .3s; transition: all .3s;}.form-control:focus {border-color: #66afe9; outline: 0; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);}