
这是使用CSS3制作的搜索框UI设计效果. 这些搜索框的设计代码很简单,设计风格主要是平面样式css搜索框,效果时尚大方.

所有搜索框的HTML结构是在表单中放置输入和提交按钮.
<form>
<input type="text" placeholder="搜索从这里开始...">
<button type="submit"></button>
</form>



各种搜索框的CSS代码非常简单. 例如css搜索框,可以通过简单定位来完成第一个效果的搜索框.
.d1 {background: #A3D0C3;}
.d1 input {
width: 100%;
height: 42px;
padding-left: 10px;
border: 2px solid #7BA7AB;
border-radius: 5px;
outline: none;
background: #F9F0DA;
color: #9E9C9C;
}
.d1 button {
position: absolute;
top: 0;
right: 0px;
width: 42px;
height: 42px;
border: none;
background: #7BA7AB;
border-radius: 0 5px 5px 0;
cursor: pointer;
}
.d1 button:before {
content: "\f002";
font-family: FontAwesome;
font-size: 16px;
color: #F9F0DA;
}
有关其他效果各异的搜索框的实现代码,请参阅下载文件.
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-167994-1.html
钱难赚而且越来越贬值了
我看你还能嚣张到什么时候