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,然后调整好你前台样式,还没搞会可以找我带教