我们面临一种非常奇怪的行为。 8在WinXP机器上。
如果我们在css中设置背景图像并在标题中设置一些jQuery之后加载css,我们的浏览器会崩溃。
在将一些内容读到互联网上之后,我们注意到如果你在包含一个有背景图像的css之前加载jQuery(当然,图像在当前目录的文件系统中!)这种(或发布)女士浏览器崩溃。
不是很奇怪吗?
有人可以告诉我们原因吗?
编辑:
这是.css代码:
body { background: #650303 url('../images/bg_body.jpg') repeat-x top; }
这是包含:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4 /strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang; ?>" lang="<?php echo $lang; ?>" >
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="robots" content="index, follow" />
<meta name="keywords" content="Florence Hotel Orto de' Medici, florence hotels italy, hotels florence, hotels in florence, hotel florence, hotel in florence, florence hotel, florence, firenze, alberghi firenze, hotel firenze, hotel florenz, hotel florence, florence, florenz, hoteles florencia, accommodation florence, florence accommodation, accommodation in florence, lodging florence, florence accomodation,ponte vecchio, ponte vecchio hotel,duomo hotel, uffizi hotel, bed and breakfast, bed & breakfast" />
<meta name="description" content="Florence Hotel Orto de' Medici: The central position of the Hotel, its well appointed banqueting suits, make it ideal for private functions such as business meetings, wedding receptions and cocktails parties." />
<title>Florence Hotel Orto de' Medici - <?php echo $titles["booking"][$_GET["lang"]]; ?></title>
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link rel="stylesheet" href="modules/mod_jweather/tmpl/mod_jweather.css" type="text/css" />
<link rel="stylesheet" href="modules/mod_jflanguageselection/tmpl/mod_jflanguageselection.css" type="text/css" />
<link rel="stylesheet" href="templates/brown2011/css/template.css" type="text/css" />
<?php require_once($PHP_LIBS_FOLDER."/common_libs/u3_head.php"); ?>
<!--[if lt IE 7]>
<script type="text/javascript" src="templates/brown2011/js/unitpngfix.js"></script>
<![endif]-->
<!--[if IE ]>
<link rel="stylesheet" href="templates/brown2011/css/IEtemplate.css" type="text/css" />
<![endif]-->
</head>
问题在于该链接
<link rel="stylesheet" href="templates/brown2011/css/template.css" type="text/css" />