是否有一個已知的問題與IE瀏覽器(7和8)在jquery.load()不能正常工作?我的CSS沒有被加載到頁面上。這裏是我的代碼:問題與CSS和.load()jQuery的IE瀏覽器
這是一個正在加載的文件(show_profile.php):
<!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>
<link rel="stylesheet" script="text/css" href="profile.css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<div id="tabs"><div id="cd" class="tab_active">Contact Details</div>
</div>
</body>
</html>
這是profile.css
#tabs {
color:white;
font-family:Verdana;
font-size:14px;
}
#cd{
position:absolute;
left:0px;
top:0px;
background-color:#3172A6;
}
.tab {
position:absolute;
top:0px;
}
.tab_active {
position:absolute;
top:0px;
}
代碼上查看文件show_profile .php獨立,所有包括CSS在內都可以,但它只是不會工作當我使用.load()
請幫忙:(
你在裝什麼?現有的元素?也許你應該使用load('show_profile.php body')'然後單獨加載CSS。 – alex
感謝repsonding alex。 load('show_profile.php body')現在似乎沒有加載任何東西。 – Anant
@alex和事情是,我的代碼完美地與谷歌鉻和火狐 – Anant