【发布时间】:2011-09-19 04:48:08
【问题描述】:
IE(7 和 8)是否存在 jquery .load() 无法正常运行的已知问题?我的 CSS 没有加载到页面上。这是我的代码:
这是正在加载的文件(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。 -
感谢您回复亚历克斯。 load('show_profile.php body') 现在似乎根本没有加载任何东西。
-
@alex 问题是,我的代码与 google chrome 和 firefox 完美配合
标签: jquery css internet-explorer load