ASP中插中图片问题

来源:百度知道 编辑:UC知道 时间:2024/05/03 11:42:22
我用这种形式<!--#include file='文件名.asp'-->在ASP中插入图片,为什么图片的跟网页显示出来的间隔会这么大。
而那个装图片的ASP文档只有一句代码<p><img border="0" src="图片名" width="855" height="189" align="top"></p>
应该怎样改改,,如果直接用FrontPage在要插入图片的文档中就不会有间隔。但这样太麻烦,

把<p>和</p>去掉就好了。

<!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>
<style type="text/css">
body{
margin:0px; padding:0px;
}
p{
margin:0px; padding:0px;
font-size:12px; line-height:24px; color:red;
}
</style>
</head>

<body>
<!-- include start -->
<style type="text/css">
#img_test{
margin:0px; padding:0px;
}
</style>
<p><img id="img_test" name="img_test" border="0" src="图片名" wid