jsp文件无法调用外部CSS

静态HTML的文件调用外部CSS文件,在IE6.0与IE7.0下显示正常,
但是同一个文件经过TOMCAT进行编译成JSP文件后在IE6.0下完全不能显示样式,但是IE7.0下正常,不知是什么原因导致的,样式表没用不兼容的设置。
不知各位有没有碰到过这种情况。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>

<html:base />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href=' <%=basePath %> html/css/style.css'>
</head>

这样的引用有问题吗?为什么IE7.0正常,IE6.0不显示样式呢

第1个回答  2008-03-21
href=' <%=basePath %> html/css/style.css'> 这个路径换成绝对路径
相似回答
大家正在搜