当前位置:编程学习 > html/css >>

CSS+DIV实现Yahoo搜索框的制作

本文及代码由 renx 原创,版权所有,随便使用,哪位大大看得起在下,有用到的话,我很荣幸您能告诉我.
开始
为了做这个yahoo搜索框,我分了三步:
1. 先做搜索分类的按钮,点击后会和其他按钮看上去比较不一样,这个是挺简单的
<!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>
<title>search_bar</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style>
body,html {
    font-size:12px;
}
.none {display: none;}
.block {display: block;}
.s_c {width:800px;text-align: center;}
.s_c ul{clear:both;margin:0;}
.s_c li{list-style:none;float:left;position: relative;width: 70px;}
.c_0 {padding:0px 10px 0px 10px;line-height:22px}
.c_0 a{color:#666;text-decoration: none;}
.c_1 {padding:4px 0;width: 70px;
    background:#0075eb;border:1px solid #054576;border-bottom-width:0;text-decoration: none;}
.c_1 a{color:#FFF;font-weight:bold;text-decoration: none;}
.c_2 {padding:4px 0;width: 70px;background:#a10303;border:1px solid #662626;border-bottom-width:0;}
    position: absolute;bottom: -7px;left: 0;}
.c_3 {padding:4px 0;width: 70px;background:#B01FAA;border:1px solid #760473;border-bottom-width:0;}
.white a {color:#FFF;font-weight:bold;text-decoration: none;}
</style>
<script language="javascript">
function aa(s_id){
    for(i=1;i<4;i++){
        if(i==s_id){
第 1 2 3 4 5 6 7 8 页
补充:Css教程,样式布局 
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,