DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> WEB網站前端 >> WEB前端代碼 >> 漂亮的搜索框HTML+CSS代碼
漂亮的搜索框HTML+CSS代碼
編輯:WEB前端代碼     
效果如下:

搜索框



也可以點擊這裡查看效果:http:///keleyi/phtml/divcss/8.htm

以下是源代碼:
<html>

<head>
<title>搜索|搜索框的實現</title>
<meta charset="UTF-8">
<style type="text/css">
<!--
body {
font-family:'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
font-size:14px;
}

h1 {
margin-top:0px;
margin-bottom:8px;
}

/* 鏈接 */
a {
text-decoration:none;
color:#1c00ff;
}

a:hover {
color:#5f00e4;
}
fieldset.search_keleyi_com {
padding: 0px;
border: none;
width: 232px;
background:#e0e0e0;
}

fieldset.search_keleyi_com:hover {
background: #a8a8a8;
}
.search_keleyi_com input, .search_keleyi_com button {
border: none;
float: left;
}
.search_keleyi_com input.box_keleyi_com {
height: 28px;
width: 200px;
margin-right: 0px;
padding-right: 0px;
background: #e0e0e0;
margin: 1px;
}
.search_keleyi_com input.box_keleyi_com:focus {
background: #e8e8e8 ;
outline: none;
}
.search_keleyi_com button.btn_keleyi_com {
border: none;
width: 28px;
height: 28px;
margin: 0px auto;
margin: 1px;
background: url(http:///keleyi/phtml/divcss/8/search_blue.png) no-repeat top right;
}
.search_keleyi_com button.btn_keleyi_com:hover {
background: url(http:///keleyi/phtml/divcss/8/search_black.png) no-repeat bottom right;
}

-->
</style>
</head>
<body>
<div>
<h2>搜索框</h2>
<form method="get" id="searchform" action="http:///">
<fieldset class="search_keleyi_com">
<input type="text" class="box_keleyi_com inputText_keleyi_com" name="s" id="s" placeholder="" x-webkit-speech>
<button class="btn_keleyi_com" title="search_keleyi_com"> </button>
</fieldset>
</form>
<a href="http:///a/bjac/6ct6gs87.htm">原文</a>
</div>

</body>
</html>
XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved