HTML+CSS实现漂亮的查询部件实例
导读:收集整理的这篇文章主要介绍了HTML+CSS实现漂亮的查询部件实例,觉得挺不错的,现在分享给大家,也给大家做个参考。 一、参考网址:www.kuhnsjewelers.COM 二、效果: 三、HTML 复制代码代码如下: <...
收集整理的这篇文章主要介绍了HTML+CSS实现漂亮的查询部件实例,觉得挺不错的,现在分享给大家,也给大家做个参考。 一、参考网址:www.kuhnsjewelers.COM 二、效果:
三、HTML
复制代码代码如下:
div id="seArch-box">
asp:TextBox ID="txtSearch" runat="server" class="searchTextBox" />
asp:Button ID="BTnSubmIT" runat="server" class="submitButton" Text="Search" />
/div>
四、CSS
复制代码代码如下:
#search-box
{
position: relative;
float: left;
width: 265px;
height: 55px;
background: url(Images/search-bg.gif) top right no-rePEat;
}
.searchTextBox
{
position: relative;
float: left;
margin-top: 14px;
margin-right:14px;
padding: 5px 5px 0 5px;
height: 22px;
width: 141px;
border: 1px solid #000;
background: #915735;
margin-left: 14px;
color: #fDF086;
}
.submitButton
{
position: relative;
height: 29px;
margin-top: 14px;
width: 70px;
background: #D2B277;
border: 1px solid #3E1210;
letter-spacing: 1px;
text-transform: uppercase;
cursor: pointer;
font-Size: 11px;
}
.submitButton:hover
{
text-decoration: underline;
}
五、说明:
1、文本框预编译后是" type="text"的标签input,代码如下:
复制代码代码如下:
input name="txtSearch" id="txtSearch" class="searchTextBox" type="text">
2、文本框的大小和div类似,盒子模型如图示:
3、按钮预编译后是标签type="submit"的标签input
复制代码代码如下:
input name="btnSubmit" value="Search" id="btnSubmit" class="submitButton" type="submit">
4、按钮的width和height是包括边框的,CSS中设置的width: 70px; height: 29px; ,实际盒子模型如图示:
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: HTML+CSS实现漂亮的查询部件实例
本文地址: https://pptw.com/jishu/584852.html