---
title: "ie8 jquery ui css bug"
author: "cainwise"
date: "2011-08-05T17:59:58Z"
tags: []
categories: ["Web前端"]
slug: "ie8-jquery-ui-css-bug"
draft: false
lastmod: "2011-08-05T17:59:58Z"
id: 1141255
url: "https://cainwise.iteye.com/blog/1141255"
---

在ie8测试jquery ui 的css

 

&lt;%@ page language="java" import="java.util.\*" pageEncoding="GBK"%&gt;  
&lt;%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%&gt;

&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;  
&lt;html&gt;  
  &lt;head&gt;  
    &lt;base href="&lt;%=basePath%&gt;"&gt;  
    &lt;title&gt;任务设计管理&lt;/title&gt;  
    &lt;meta http-equiv="pragma" content="no-cache"&gt;  
    &lt;meta http-equiv="cache-control" content="no-cache"&gt;  
    &lt;meta http-equiv="expires" content="0"&gt;     
    &lt;meta http-equiv="keywords" content="keyword1,keyword2,keyword3"&gt;  
    &lt;meta http-equiv="description" content="This is my page"&gt;  
    &lt;link rel="StyleSheet" href="css/dtree/dtree.css" type="text/css" /&gt;

    错误：&lt;link rel="StyleSheet" href="css/jquery/jquery-ui-1.8.13.custom.css" type="text/css" /&gt;

    正确：&lt;link rel="StyleSheet" href="&lt;%=basePath %&gt;css/jquery/jquery-ui-1.8.13.custom.css" type="text/css" /&gt;  
     
    &lt;script type="text/javascript" src="js/dtree/dtree.js"&gt;&lt;/script&gt;  
    &lt;script type="text/javascript" src="js/jquery/jquery-1.5.1.min.js"&gt;&lt;/script&gt;  
    &lt;script type="text/javascript" src="js/jquery/jquery-ui-1.8.13.custom.min.js"&gt;&lt;/script&gt;