【问题标题】:Unable to load css and bootstrap between two folders无法在两个文件夹之间加载 CSS 和引导程序
【发布时间】:2017-04-04 13:02:19
【问题描述】:

我正在尝试将一个 html 文件从 TaskCreation 文件夹加载到 jsp 文件夹中的 Checking.jsp 文件中。最初 html 加载正常,但包括在 jsp 文件中的 bootstrap 和 css 没有加载。帮我解决这个问题。

For path image click here

【问题讨论】:

    标签: html css jsp angular-ui-bootstrap


    【解决方案1】:

    你必须使用 linkrel 属性来访问外部样式表

     <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
     <link rel="stylesheet" type="text/css" href="css/custom.css">
    

    如果您想返回一个文件夹,即。如果您的文件夹路径比当前路径低一步。然后使用。

     <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">
     <link rel="stylesheet" type="text/css" href="../css/custom.css">
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-10-03
      • 1970-01-01
      • 2016-10-25
      • 1970-01-01
      • 2021-07-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多