porject 7 come back home

web习作 七




    
    回家网
  
  


出发时间 始发站/首发站 计划车型 票价 购票
06:30 省汽车站
阳江
空调座席 ¥100 购票
07:30 省汽车站
阳江
空调座席 ¥100 购票
08:30 省汽车站
阳江
空调座席 ¥100 购票
09:30 省汽车站
阳江
空调座席 ¥100 购票

css部分

body,ul,p,dil,dt,dd,h1,table,tr,td,th,h2,li{margin: 0 ;padding: 0;list-style: none;outline: none;border:0;}
body{color: #6c6c6c;font-size: 12px;font-family: "微软雅黑";}
a:link,a:visited{text-decoration: none;color: #6c6c6c;}
a:hover{text-decoration: none;}
#top_bg{
  width: 100%;
  height: 30px;
  background: #F7F7F7;
}
#top{
  width:980px;
  height: 30px;
  line-height: 30px;
  margin: 0 auto;
}
.left{
  float: left;}
.right{
  float: right;}
#top li{
  float: left;
  padding: 0px 10px 0px 0px;
}
#top .line{color: #cccccc;}
.right li{
  cursor: pointer;
  border:1px solid #F7F7F7;
}
.right li span{padding:0px 9px;}
.right .list{position: relative;}
 .right #list_cur{
   width: 95px;
   display: none;
   position: absolute;
   left: -1px;
   top: 30px;
   background-color: #FFF;
   border: 1px solid #EEE;
 }
 .right #list_cur a{
   display: block;
   padding: 0 10px;
   line-height: 28px;
   color: #6c6c6c;
 }
 .right #list_cur a:hover{background: #F5F5F5;}
#nav_bg{
	width:100%;
	height:95px;
	background: #fff;
	border-bottom: 5px solid #d3d3d3;
}
.nav{
	width: 980px;
	margin:5px auto 0;
	height:100px;
}
.nav h2{
	height: 70px;
	padding-top: 25px;
	float: left;
}
.nav ul{float:left;}
.nav ul li{float: left;}
.nav ul li a{
	display: block;
	padding: 0 40px;
	height: 95px;
	line-height: 95px;
	font-size: 14px;
	border-bottom: 5px solid #d3d3d3;
}
.nav ul li a:hover{
	color: #e67616;
	border-bottom: 5px solid #e67616;
}
#banner{
	width:980px;
	height:519px;
	margin:0 auto;
}
#week{
	width: 980px;
	height:80px;
	margin: 30px auto;
}
#week li{float:left;}
#week a{
	display: inline-block;
	width: 137px;
	height: 50px;
	border: 2px solid #ffc393;
	text-align: center;
	padding-top: 28px;
	background: #fff8f2;
}
#week .next{border-left:0;}
#week a:hover{
	background: #fff;
	border-bottom: 2px solid #fff;
}
.table{
	width:980px;
	border-collapse: collapse;
	margin: 0 auto;
	border: 1px solid #e8e8e8;
	font-size: 14px;
}
.table tr{
	height: 90px;
	text-align: center;
	background-color: #ffe8c8;
}
.table .title{
	background-color: #f8f8f8;
	height: 30px;
	color: #999;
	font-size:16px;
}
.txt1 .colors{
	font-size: 23px;
	color: #ff7000;
}
.table .txt2{
	width:120px;
	text-align: left;
}
.red,.blue{
	display: inline-block;
	width: 18px;
	height: 18px;
	background: #ff7600;
	color: #fff;
	line-height: 18px;
	text-align: center;
}
.blue{background:#06F;}
.buy{
	width:100px;
	height: 30px;
	background: #ff7600;
	display: inline-block;
	line-height: 30px;
	color: #fff;
}
.buy:link,.buy:visited{color:#fff;}
.buy:hover{background:#ff9942;}
.table .even{background-color:#fff5e6;}
#footer{
	width: 100%;
	height: 80px;
	background: url("../img/footer_bg.png") repeat-x;
	color: #555;
	text-align: center;
	line-height: 80px;
	maring-top:50px;
	font-size:14px;
}

js部分

function change(myid,mode){
   document.getElementById(myid).style.display = mode;
   if(mode == 'block'){
    document.getElementById(myid).parentNode.style.border = "1px solid #eee";
    document.getElementById(myid).style.borderTop = "none";
	document.getElementById(myid).parentNode.style.backgroundColor="#fff";
	document.getElementById(myid).parentNode.style.border = "1px solid #eee";
	document.getElementById(myid).parentNode.style.borderBottom = "none";
  }
   else{
	  document.getElementById(myid).parentNode.style.backgroundColor = "";
	  document.getElementById(myid).parentNode.style.border = "";
  }
}
function changeColor(){
	var trs = document.getElementById("tb1").getElementsByTagName("tr");
	for(var i = 2; i

 

你可能感兴趣的:(web,web)