首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当页面有多个查询字符串时,CSS不起作用

问当页面有多个查询字符串时,CSS不起作用
EN

Stack Overflow用户
提问于 2014-05-07 07:13:48
回答 1查看 49关注 0票数 1

一位客户最初在IE浏览器中遇到了此问题(我不确定是哪个版本)。我可以把它复制到我的三星Galaxy 3手机的Chrome浏览器上。查看包含两个查询字符串的此链接时,页面上不使用CSS:

http://catalogs.infocommiq.com/avcat/ctl1642/index.cfm?bimlist&company=203603

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

一个CSS文件用绝对链接调用,另外两个用相对链接调用。无法在我的三星Galaxy 3手机的Chrome浏览器上加载此页面的所有文件。

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

EN

回答 1

Stack Overflow用户

发布于 2014-05-07 09:41:50

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

第67-72行包含以下内容:

代码语言:javascript
复制
<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行包含以下内容:

代码语言:javascript
复制
<script type="text/javascript">
            MyIQDynamicListArrayName = 'MyIQListArrays', List_Catalog_ID = 1642; 
        </script>
        </head>

<body>

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23506075

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档