在CSS中,对于搜索框(text input)进行样式设计也是非常重要的一部分。搜索框的样式不仅应该美观大方,还应该方便用户进行输入。首先,我们需要给搜索框设置一定的宽度和高度。这可以通过使用widt
input[type="text"] { width: 300px; height: 30px; }
input[type="text"] { width: 300px; height: 30px; border: 1px solid #ccc; border-radius: 10px; }
input[type="text"] { width: 300px; height: 30px; border: 1px solid #ccc; border-radius: 10px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); }
input[type="text"]:focus { border-color: #4d90fe; box-shadow: 0 0 5px rgba(77, 144, 254, 0.5); }
input[type="text"] { width: 300px; height: 30px; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); } input[type="text"]:focus { border-color: #4d90fe; -webkit-box-shadow: 0 0 5px rgba(77, 144, 254, 0.5); -moz-box-shadow: 0 0 5px rgba(77, 144, 254, 0.5); box-shadow: 0 0 5px rgba(77, 144, 254, 0.5); }
粉丝
0
关注
0
收藏
0