为什么我的jsp里设置了web.xml后网页里的css无效了

<?xmlversion="1.0"encoding="ISO-8859-1"?><!DOCTYPEweb-appPUBLIC"-//SunMicrosystems,In... <?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<filter>
<filter-name>Filtern</filter-name>
<filter-class>bits.AuthenFilter</filter-class>
</filter>
<filter>
<filter-name>Filter1</filter-name>
<filter-class>bits.Filter1</filter-class>
</filter>
<filter>
<filter-name>Filter2</filter-name>
<filter-class>bits.Filter2</filter-class>
</filter>
<filter>
<filter-name>Filter3</filter-name>
<filter-class>bits.myfirstfilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>GBK</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>Filter3</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Filtern</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Filter1</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>Filter2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>bits.SLDemo</listener-class>
</listener>
<listener>
<listener-class>bits.AppListener</listener-class>
</listener>
<servlet>
<servlet-name>sixth</servlet-name>
<servlet-class>bits.CheckNumber</servlet-class>
</servlet>
<servlet>
<servlet-name>firsts</servlet-name>
<servlet-class>bits.AuthenDemo</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>sixth</servlet-name>
<url-pattern>/sixth</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>firsts</servlet-name>
<url-pattern>/authen</url-pattern>
</servlet-mapping>

</web-app>
default.jsp如下
<HTML>
<HEAD>
<title>登录</title>
<link rel="stylesheet" href="fontall.css" type="text/css"/>
<link rel="stylesheet" href="back.css" type="text/css"/>
</HEAD>
<body>
<!-- third bar -->
<%@ include file="login.inc" %>
<%@ include file="menu.inc" %>
<!-- main bar -->
<h1 align="center">请您输入正确的用户名和密码</h1>
<form method="post" action="/ch02/authen">
<p align="center" >用户名:<input type="text" name="user"/></p>
<p align="center">密码 :<input type="password" name="pwd"/></p>
<p align="center">类型 :<input type="radio" name="adm" value="ad" checked />总管理员
<input type="radio" name="adm" value="ca" />操作管理员</p>
<p align="center"><img src="/ch02/sixth" border="0"/><input name="code" type="text" /></p>
<p align="center"><input type="submit" value="登录"/><input type="reset" value="清空"/></p>
</form>
展开
 我来答
545282576
2010-11-17 · TA获得超过124个赞
知道答主
回答量:317
采纳率:0%
帮助的人:183万
展开全部
可能是编码的问题,注意下你的样式编码
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式