时间:2021-04-16
css制作简洁实用搜索框样式代码如下:
body,
input,
button {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.container { margin: 300px auto 40px auto; width: 800px; text-align: center; }
a { color: #4183c4; text-decoration: none; font-weight: bold; }
a:hover { text-decoration: underline; }
h3 { color: #666; }
ul { list-style: none; padding: 25px 0; }
li {
display: inline;
margin: 10px 50px 10px 0px;
}
input[type=text],
input[type=password] {
font-size: 13px;
min-height: 32px;
margin: 0;
padding: 7px 8px;
outline: none;
color: #333;
background-color: #fff;
background-repeat: no-repeat;
background-position: right center;
border: 1px solid #ccc;
border-radius: 3px;
box-shadow: inset 0 1px 2px rgba(0,0,0,0.075);
-moz-box-sizing: border-box;
box-sizing: border-box;
transition: all 0.15s ease-in;
-webkit-transition: all 0.15s ease-in 0;
vertical-align: middle;
}
.button {
position: relative;
display: inline-block;
margin: 0;
padding: 8px 15px;
font-size: 13px;
font-weight: bold;
color: #333;
text-shadow: 0 1px 0 rgba(255,255,255,0.9);
white-space: nowrap;
background-color: #eaeaea;
background-image: -moz-linear-gradient(#fafafa, #eaeaea);
background-image: -webkit-linear-gradient(#fafafa, #eaeaea);
background-image: linear-gradient(#fafafa, #eaeaea);
background-repeat: repeat-x;
border-radius: 3px;
border: 1px solid #ddd;
border-bottom-color: #c5c5c5;
box-shadow: 0 1px 3px rgba(0,0,0,.05);
vertical-align: middle;
cursor: pointer;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-appearance: none;
}
.button:hover,
.button:active {
background-position: 0 -15px;
border-color: #ccc #ccc #b5b5b5;
}
.button:active {
background-color: #dadada;
border-color: #b5b5b5;
background-image: none;
box-shadow: inset 0 3px 5px rgba(0,0,0,.15);
}
.button:focus,
input[type=text]:focus,
input[type=password]:focus {
outline: none;
border-color: #51a7e8;
box-shadow: inset 0 1px 2px rgba(0,0,0,.075), 0 0 5px rgba(81,167,232,.5);
}
label[for=search] {
display: block;
text-align: left;
}
#search label {
font-weight: 200;
padding: 5px 0;
}
#search input[type=text] {
font-size: 18px;
width: 705px;
}
#search .button {
padding: 10px;
width: 90px;
}
声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。
本文实例讲述了JS+CSS实现实用的单击输入框弹出选择框的方法。分享给大家供大家参考。具体实现方法如下:复制代码代码如下:JS+CSS打造实用的单击输入框弹出选
文章开始先告诉大家制作jquery实现简洁文件上传表单样式的简易教程。效果图:页面结构:css文件样式:.uploader{position:relative;
改变文本框的获得焦点的样式复制代码代码如下:个人基本信息名称:首先在css中添加一个类名为focus的样式。css代码如下:复制代码代码如下:.focus{bo
做了个输入框样式,如图:CSS代码如下:复制代码代码如下:#button{cursor:pointer;width:30%;margin:5px;padding
众所周知,bootstrap是一款非常实用的CSS框架(主要用于样式的快速搭建),由于其简洁,美观,快捷,响应式等特点备受大家喜欢,但是其本身也是存在很多bug