IE上的CSS和.load()jquery问题

前端之家收集整理的这篇文章主要介绍了IE上的CSS和.load()jquery问题前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
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()

请帮忙 :(

@H_502_15@解决方法
css来自主文档的标题,而不是加载. 您可以使用加载(0或使用加载它的文档中的某些css(或使用样式标签)中指定样式)在正在加载的页面上使用内联样式.
原文链接:https://www.f2er.com/css/216351.html

猜你在找的CSS相关文章