1、網頁設計 類似百度搜索頁面是怎麼做出來的
網頁設計這個一般都是要求會前端代碼,html css js flash 還有些其他的腳本插件什麼的。
如果代碼寫的熟練可以不用DW。寫網頁的工具很多,用txt文本文檔也可以。
好了,貼上搜索框代碼,使用需要後台程序支持,直接點了可是什麼都沒有哦。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>搜索框</title>
<style type="text/css" media="screen">
body {
background-color: #f1f1f1;
margin: 0;
}
body,
input,
button {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.container { margin: 30px 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;
}
</style>
</head>
<body>
<div class="container">
<div id="search">
<label for="search"></label>
<input type="text" name="q">
<input class="button" type="submit" value="Search">
</div>
</div>
<div style="text-align:center;margin:100px 0; font:normal 14px/24px 'MicroSoft YaHei';">
</div>
</body>
</html>
2、網頁設計中如何做一個好看的搜索框
通過from表單,將查詢的關鍵詞,通過 like 跟數據進行模糊查詢對比
從topics表中查詢欄位subject與傳進來的參數'$_POST['topic']進行比較模糊查詢
設subject欄位數據為:數學,英語,物理,化學,英文
$subject=$_POST['topic'];
$sql = "select * from topics where subject like '%" .$subject. "%'";
$result = mysql_query($sql);
若從表單提交的『topic』值為「學」,得到的結果將是:數學,化學
多個欄位匹配查詢:
$sql = "select id,subject from topics where (id like '%" .$id. "%') or (name like '%" .$name. "%') or (subject like '%" .$subject. "%') order by id desc";
3、關於dreamweaver的搜索框製作
<form class="enter">
<input type="text" value="請輸抄入你要搜索的關鍵詞" class="bdys" onfocus="this.value=''" onblur="this.value='請輸入你要搜索的關鍵詞'"/></form>
文本框獲得焦點清除文字,失去焦點恢復文字。但是要實現具體功能就要用到asp或者php了。。
4、html 製作簡單的搜索功能
1.打開Hbuilder編輯器,創建一個輸入框和一個按鈕,水平放置。

2.首先,將「#7FCC0B」顏色的邊框添加到輸入框中,設置寬度和高度。然後,設置按鈕按鈕的白色字體和背景色「#7FCC0B」。

3.按CRTL+s可以在軟體的右邊看到最終的效果。這就是如何在HTML中創建一個搜索框。
(4)網頁設計搜索框代碼擴展資料:
1. 語言概述
WWW上的超媒體文檔稱為頁面。作為組織或個人在萬維網上的起點的頁面稱為主頁,而主頁通常包含指向其他相關頁面或其他節點的指針(超鏈接)。從邏輯上講作為一個整體處理的一系列頁面的有機集合稱為一個網站(網站或Web)。
Web頁面,也稱為Web頁面,在這里沒有區別。
2. 規范和標准
HTML是一種規范,一種標准,它使用標記符號來標記要顯示的web頁面的各個部分。web文件本身是一個文本文件,通過在文本文件中添加標記,您可以告訴瀏覽器如何顯示內容(例如,如何處理文本、如何安排圖片、如何顯示圖片等)。
瀏覽器依次讀取網頁文件,然後根據標記解釋並顯示其標記的內容。錯誤的標記不會被指出,也不會停止其解釋的執行。編譯器只能通過顯示效果來分析錯誤的原因和部分原因。但是,需要注意的是,不同的瀏覽器可能對相同的標記有不同的解釋,並且可能具有不同的顯示效果。
3.標記語言
HTML被稱為超文本標記語言,因為文本包含所謂的「超鏈接」點—URL指針,使瀏覽器能夠通過激活(單擊)新網頁來輕松檢索它們。這是為什麼HTML被廣泛使用的最重要的原因之一。
因此,Web頁面的本質是HTML,通過結合其他Web技術(如腳本語言、CGI、組件等)可以創建功能強大的Web頁面。因此,HTML是Web編程的基礎,這意味著萬維網是基於超文本的。
5、dreamweaver網頁製作如何加入搜索框,搜索框功能是可以搜索自已製作的網頁中的內容,能做出來嗎?謝謝
可以製作搜索框,但是如果要實現實際的搜索功能可能就需要用到後台的內容了。僅僅依靠網頁製作,應該是實現不了這個功能的。
6、html製作一個搜索框,代碼是什麼?
html製作一個搜索框,代碼是:testvarNS4=(document.layers);//Whichbrowser?
7、html中搜索框怎麼做?
<input type="text" class="aa"><input type="button" value="搜索" class="bb">
8、html中搜索框怎麼做
.aa{width:100px; height:20px; boder:solid 1px #f00;}//定義搜索框的大小高度以及邊框顏色。
思路是:
放大鏡圖標用個img寫進來或者用其它回標簽用CSS做背景也可以;
下拉導航答這種效果系統的Select下拉是最容易想到的,但是別想著用它做,,原因很簡單,做不到的,,這個必須藉助JS輔助來解決!
9、網站代碼里如何添加搜索框
看你啥程序語言寫的,架構是咋設計的,都是要用到資料庫的,和你文章列表差不多,他只是查詢keyword,然後調整好你前台樣式,還沒搞會可以找我帶教