【问题标题】:CSS not showing up with ERBCSS 没有出现在 ERB 中
【发布时间】:2011-10-02 02:12:08
【问题描述】:

我刚刚在 Heroku 上托管了一些东西,每当我打开应用程序时,它都可以正常工作,并且 css 是这样链接的:

        <link rel="stylesheet" href="/css/style.css"/>

当我添加自定义域时出现问题,css 不再起作用。当我查看源代码并单击 href 时,它会得到响应“未找到”。什么都没有改变,我的 css 文件夹仍然在我的应用程序目录的公用文件夹中。

【问题讨论】:

    标签: css ruby dns sinatra erb


    【解决方案1】:

    你有没有为href尝试过不同的路径,比如

    href="../css/style.css"
    

    href="css/style.css"
    

    【讨论】:

      猜你喜欢
      • 2017-06-21
      • 2017-10-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多