会CSS的进来帮个小忙
http://amanofmark.com.cn/html/2.html把上面的"公交线路自驾线路 "那一行的高度改高一点,谢谢了......
偶不会改,改了就这样:'( :'(
http://amanofmark.com.cn/html/1.html
<!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>
</head>
<body>
<script type="text/javascript">
<!--
function c(i){
var i;
document.getElementById("tab").className="tabD"+i;
}
onload=function(){
var a=document.links;
for(var i=0;i<a.length;i++)a.onfocus=function(){this.blur();}
}
//-->
</script>
<style type="text/css">
body,table,td,th,input,textarea,button,select{font:13px Verdana,"宋体",sans-serif;}
div#tab{width:98%;text-align:left;}
ul.tabU{
list-style: none;
margin: 0px;
padding:1px 0px 0px .5em;
}
ul.tabU li{
display: inline;
margin-right:2px;
}
ul.tabU li a{
color:black;
font-weight:bold;
line-height: 20px;
text-decoration:none;
background-image: url(http://tts.4836.net.ru/images/tts/tab.gif);
border:1px #BBBBBB solid;
border-bottom-width:0px;
padding:0px 5px 2px;
cursor: pointer;
}
div.tabC{
display:none;
border:1px solid;
padding:16px;
}
div.tabD2 a.tabB2,a.tabB2:hover{background-position:0 -42px;border-color:#00A650;}
div.tabD2 div.tabC2{border-color:#00A650;display:block;background-color:#;}
div.tabD3 a.tabB3,a.tabB3:hover{background-position:0 -64px;border-color:#84AC44;}
div.tabD3 div.tabC3{border-color:#84AC44;display:block;background-color:#F1F6E7;}
div.tabD2 a.tabB2,div.tabD3 a.tabB3{padding:1px 5px 3px;}
</style>
<body onLoad="c(2)">
<center>
<div id="tab" class="tabD1">
<script type="text/javascript">
<!--
var i=parseInt(location.hash.replace("#",""));
if(i)document.getElementById("tab").className="tabD"+i;
//-->
</script>
<ul class="tabU">
<li><a onMouseOver="c(2)" href="#2" class="tabB2">公交线路</a></li><li><a onMouseOver="c(3)" href="#3" class="tabB3">自驾线路</a></li>
</ul>
<div class="tabC tabC2"><form>公交线路查询:<br>
<table border="0" width="96%" id="table1">
<tr>
<td>始发<input type="text" size="20" name="start" value=""/></td>
</tr>
<tr>
<td>终点<input type="text" size="20" name="end" value=""/ readonly></td>
</tr>
<tr>
<td><input type="button" value="开始查询" onClick=""></td>
</tr>
</table>
</form></div>
<div class="tabC tabC3"><form>自驾线路查询:<br>
<table border="0" width="96%" id="table1">
<tr>
<td>始发<input type="text" size="20" name="start" value=""/></td>
</tr>
<tr>
<td>终点<input type="text" size="20" name="end" value=""/ readonly></td>
</tr>
<tr>
<td><input type="button" value="开始查询" onClick=""></td>
</tr>
</table>
</form></div>
</div>
</center> </body>
</html>
:L :L 本地无法显示,打包 睡觉,明日研究 偶不太懂CSS呀,对不起啦 三个字母都会
加起来就不会了 只会cs 要看书可以提供下载... 没明白意思。。。
代码可读性差 :L
页:
[1]
2