gpt4 book ai didi

css - 页面忽略样式表但在页眉中读取相同的样式

转载 作者:太空宇宙 更新时间:2023-11-04 05:06:09 24 4
gpt4 key购买 nike

此页面未从样式表中获取表格样式。如果我在页面本身中放置相同的样式,则会应用它们。什么会导致这个? css文件名正确,被其他页面读取。

<!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>
<title>Pagelinks | Known Issues</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>

<link rel="stylesheet" type="text/css" href="pagelinks_windows.css" />

<!-- style>
#known_issues th, #known_issues td {
font-size: 13px;
text-align: left;
}

</style -->

</head>
<body>
<h1>Known Issues</h1>

<p>
Known bugs and issues are listed here.</p>

<table id="known_issues">
<tr><th>Tracking No.</th><th>Category</th><th>Description</th><th>Status</th><th>Workaround</th></tr>
<tr><td>plt001</td><td>Site</td><td>Site navigation broken on Internet Explorer 8</td><td>Closed</td><td>None. That browser version has a major bug involving javascript objects. Users must upgrade to Internet Explorer 9.</td></tr>
<tr><td>plt002</td><td>Site</td><td>Saints and feasts do now show description</td><td>Open</td><td>None. The description data for the Saints and the feasts is being compiled.</td></tr>
</table>
<br/>
<br/>

最佳答案

测试css文件内容是否可见。尝试在浏览器中打开它。

当文件名中的字母大小写(A\a 等)不同时,常见的可能错误 - 这在 *nix 托管服务器上不起作用,即使它在 windows 上本地工作也是如此。

另一种常见情况:从当前文件目录到文件的路径何时出错。

关于css - 页面忽略样式表但在页眉中读取相同的样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10406306/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com