为什么CSS在重写网址后无法正常运行 [英] Why CSS is not functioning properly after url rewriting

查看:91
本文介绍了为什么CSS在重写网址后无法正常运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾使用IIS 7重写模块重写URL。现在,重写的URL正常工作并重定向到正确的页面,但页面的CSS无法正常运行。我错过了什么请帮助...

I had used IIS 7 rewrite module to rewrite URL. Now the Rewritten URL works properly and redirects to the right page but the CSS of the page is not functioning properly. What have i missed out Please help...

推荐答案

您可以尝试在HTML部分添加此JavaScript以检查页面的路径。

You can try to add this JavaScript in the HTML section to check the path of your page.
<script type="text/javascript">
    window.onload = function()
    {
        alert(document.location.href);
    }
</script>



然后您可以检查您的CSS文件是否在此位置。



至少这会帮助你解决问题。


Then you can check if your CSS files are in this location.

At least this will help you in your trouble shooting efforts.


这篇关于为什么CSS在重写网址后无法正常运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆