页面属性标注 加了标注后出现空行

wangshunqi 2009-07-15 02:39:03
<meta name="subsite" content="嘉兴市卫生监督所" />
<meta name="location" content="330400" />
<meta name="department" content="000" />
<meta name="title" content=<%=rss("title")%> />
<meta name="description" content="" />
<meta name="author" content=<%=rss("name_d")%> />
<meta name="category" content=<%=category%> />
<meta name="pubDate" content=<%=rss("time1")%> />
<meta name="guid" content=<%=guid%> />
<meta name="effectiveTime" content="0" />    
<meta name="level" content="0" />
<meta name="source" content=<%=rss("xxly")%> />       
<meta name="language" content="1" />



如下页面
http://www.dyscience.cn/sxjjzx/display.asp?id=127
...全文
203 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
wangshunqi 2009-07-15
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 lzp4881 的回复:]
<meta name="subsite" content="嘉兴市卫生监督所" />
<meta name="location" content="330400" />
<meta name="department" content="000" />
<meta name="title" content= "" />
<meta name="description" content="" />
<meta name="author" content= "" />
<meta name="category" content= "" />
<meta name="pubDate" content= "" />
<meta name="guid" content= "" />
<meta name="effectiveTime" conte…
[/Quote]
原来真的是后面存在空格
细节啊,太失败了
谢了
wangshunqi 2009-07-15
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 AeroRoad 的回复:]
你是不是用的头部包含啊?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
这个只能放在第一行,你那居然出现了两个。
用包含的话,包含文件里面不用把整个页面的代码都放进去,用到什么,放什么,把没用的都删掉。
比如只放个 <TABLE> </TABLE>不用 <html>..... <table> </table>... </html>
[/Quote]
是用的包含
而且我也去掉了那些多余的,但还是存在这个问题
lzp4881 2009-07-15
  • 打赏
  • 举报
回复
<meta name="subsite" content="嘉兴市卫生监督所" />
<meta name="location" content="330400" />
<meta name="department" content="000" />
<meta name="title" content= "" />
<meta name="description" content="" />
<meta name="author" content= "" />
<meta name="category" content= "" />
<meta name="pubDate" content= "" />
<meta name="guid" content= "" />
<meta name="effectiveTime" content="0" />这后面有空格
<meta name="level" content="0" />这后面有空格
<meta name="source" content= "" />这后面有空格
<meta name="language" content="1" />这后面有空格
测试了一下,是你这些内容后面的空格,把它们删除就行了
AeroRoad 2009-07-15
  • 打赏
  • 举报
回复
你是不是用的头部包含啊?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
这个只能放在第一行,你那居然出现了两个。
用包含的话,包含文件里面不用把整个页面的代码都放进去,用到什么,放什么,把没用的都删掉。
比如只放个<TABLE></TABLE>不用<html>.....<table></table>...</html>
wangshunqi 2009-07-15
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 lzp4881 的回复:]
引用 3 楼 wangshunqi 的回复:
就是头部不知道为什么会多出大概25像素高的空白区域


这个你要设置margin
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
[/Quote]
不是这个问题
重点是在META
首页面和其它一些没有加
<meta name="subsite" content="嘉兴市卫生监督所" />
<meta name="location" content="330400" />
<meta name="department" content="000" />
<meta name="title" content= <%=rss("title")%> />
<meta name="description" content="" />
<meta name="author" content= <%=rss("name_d")%> />
<meta name="category" content= <%=category%> />
<meta name="pubDate" content= <%=rss("time1")%> />
<meta name="guid" content= <%=guid%> />
<meta name="effectiveTime" content="0" />    
<meta name="level" content="0" />
<meta name="source" content= <%=rss("xxly")%> />       
<meta name="language" content="1" />
在页顶不会出现空白区域,只是存在于加了这一标注的网页当中,当我删去这一段标注,空白区域也跟着消失
但,现在在做的网站一定要加,没办法~~~~
lzp4881 2009-07-15
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 wangshunqi 的回复:]
就是头部不知道为什么会多出大概25像素高的空白区域
[/Quote]
这个你要设置margin
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
wangshunqi 2009-07-15
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 qq369664666 的回复:]
     <meta name="pubDate" content='2009-7-10 1:01:55'>

     <meta name="guid" content="33060000000920091270000"> 

是不是 因为中间的空隙 我猜的
[/Quote]
不是这个原因
wangshunqi 2009-07-15
  • 打赏
  • 举报
回复
就是头部不知道为什么会多出大概25像素高的空白区域
lzp4881 2009-07-15
  • 打赏
  • 举报
回复
哪里有空行?没发现
搬运工865 2009-07-15
  • 打赏
  • 举报
回复
    <meta name="pubDate" content='2009-7-10 1:01:55'>

    <meta name="guid" content="33060000000920091270000"> 

是不是 因为中间的空隙 我猜的

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧