gpt4 book ai didi

javascript - 当页面有多个查询字符串时 CSS 不工作

转载 作者:行者123 更新时间:2023-11-28 17:44:24 24 4
gpt4 key购买 nike

一个客户原来是在IE浏览器上遇到这个问题(不知道是什么版本)。我能够在我的 Samsung Galaxy 3 手机上的 Chrome 浏览器上复制它。使用两个查询字符串查看此链接时,页面上未使用 CSS:
http://catalogs.infocommiq.com/avcat/ctl1642/index.cfm?bimlist&company=203603

您可以查看页面的源代码并查看 CSS 文件正在被调用并且可用。 iqRegional.css keywordsearchsearchform.css iqBIM.css

一个 CSS 文件用绝对链接调用,另外两个用相对链接调用。此页面的所有文件都不会加载到我的 Samsung Galaxy 3 移动设备上的 Chrome 浏览器中。

但是,如果我缩短链接中的查询字符串,CSS 加载正常。 http://catalogs.infocommiq.com/avcat/ctl1642/index.cfm?bimlist

最佳答案

对于 http://catalogs.infocommiq.com/avcat/ctl1642/index.cfm

第 67-72 行是这样的:

<script type="text/javascript">
MyIQDynamicListArrayName = 'MyIQListArrays', List_Catalog_ID = 1642;
</script>
<link rel="stylesheet" type="text/css" href="http://catalogs.infocommiq.com/avcat/css/iqRegional.css?v=6"><link rel="stylesheet" type="text/css" href="../keywordsearchsearchform.css?v=6"><title>Audio Visual Equipment, AV Service Providers Directory and Resource Center - AV-iQ</title><meta name="description" content="The most complete audio visual equipment, AV service providers directory and industry resource center including AV equipment, installations, dealers, rentals, service providers, case studies, news and more!"><meta name="keywords" content="audio visual equipment AV services providers directory resource installations dealers rentals 3D cameras displays projectors screens mounts video production presentation systems content delivery digital signage test measurement signal management furniture consoles media manufacturers - AV-iQ"></head>

<body>

相比之下,http://catalogs.infocommiq.com/avcat/ctl1642/index.cfm?bimlist&company=203603

第 62-67 行是这样的:

<script type="text/javascript">
MyIQDynamicListArrayName = 'MyIQListArrays', List_Catalog_ID = 1642;
</script>
</head>

<body>

因此,在第一个链接中调用了更多的 css 文件。您需要检查您的模板代码以了解为什么添加查询字符串会终止对这些 css 文件的调用。

关于javascript - 当页面有多个查询字符串时 CSS 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23506075/

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