日期:2014-05-17  浏览次数:20695 次

着急,谁能帮我调一下,关于css的问题
做了一个页面,很奇怪的是页面顶部总有一个空行无法去掉,页面编码是utf-8的,分为两个文件,一个1.html,一个main.css,请高手帮忙调试一下,去掉上面的空行,代码如下:

////////////////////////////
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>
<title> 汽车大全 </title>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=utf-8 "   />
<link   href= "main.css "   rel= "stylesheet "   type= "text/css "   />
</head>
<body>
&#65279; <script   language= "JavaScript "   type= "text/javascript ">
function   search_to_brand()
{
document.form_search.search_submit.value= "搜索品牌 ";
}
function   search_to_group()
{
document.form_search.search_submit.value= "搜索团购 ";
}
function   search_to_dealer()
{
document.form_search.search_submit.value= "搜索经销商 ";
}

</script>
<div   class= "top ">
    <table   width= "100% "     height= "107 "   border= "0 "   cellspacing= "0 "   bgcolor= "#04477c ">
        <tr>
            <td   width= "280 "   bgcolor= "#04477c "> &nbsp; <span   class= "f12_white_cu "> 汽车大全 </span> </td>
            <td   align= "right "   valign= "middle "   bgcolor= "#04477c "> <span   class= "f12_white_cu "> <a     class= "one "   href= "# "> 首页 </a>   |   <a   class= "one "   href= "# "> 团购 </a>   |   <a   class= "one "   href= "# "> 车型大全 </a>   |   <a   class= "one "   href= "# "> 登陆 </a>   |   <a   class= "one "   href= "# "> 一分钟注册 </a> </span> </td>
        </tr>
        <tr>
            <td   bgcolor= "#f0f0f0 "> <img   src= "images/logo.gif "/> </td>
            <td   bgcolor= "#f0f0f0 "> <a   href= "# "   onclick= "search_to_brand() "> 品牌车型 </a>   |   <a   href= "# "   onclick= "search_to_group() "> 团购 </a>   |   <a   href= "# "   onclick= "search_to_dealer() "> 经销商 </a>
                <form   name= "form_search "   method= "post "   action= " ">
                    <label>
                    <input   type= "text "   name= "textfield "     style= "width:180px;font: '宋体 ';font-size:12px;   verti