无法将bootstrap.min.css与动态网络应用程序链接

时间:2018-04-11 09:50:41

标签: servlets web-applications bootstrap-4

亲爱的,

我已按照以下步骤操作:

1)从http://getbootstrap.com/

下载Bootstrap

2)在eclipse中创建一个动态Web项目。

3)确保可以在服务器上运行此动态Web项目。

4)在WebContent文件夹下,创建一个bootstrap文件夹。

5)从下载的Bootstrap导入以下文件  资源进入新创建的文件夹,“bootstrap”在步骤3中.css  由bootstrap.min.css组成的文件夹  bootstrap.min.js img由图像组成创建一个index.jsp并放入  在标签内跟随

但是我的html似乎没有看到css,我甚至把这一行写成测试但没有出现

<div class="alert alert-info">
  <strong>Info!</strong> Indicates a neutral informative change or action.
</div>

这是整个index.html页面:

<!DOCTYPE html>
<html>
<head>
<link href=”bootstrap/bootstrap.min.css” rel=”stylesheet” type=”text/css” />

<meta charset="ISO-8859-1">
<title>Insert title here</title>


</head>
<body>

<div class="alert alert-info">
  <strong>Info!</strong> Indicates a neutral informative change or action.
</div>

</body>
</html>

1 个答案:

答案 0 :(得分:0)

尝试将您的css链接声明更改为

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

它的符号编码不受支持。