use*_*337 8 html css jsp twitter-bootstrap
我无法理解为什么我的jsp页面不会破解引导程序样式.
我的hello.jsp
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<link href="<c:url value="/bootstrap/css/bootstrap.min.css"/>" rel="stylesheet">
</head>
<body>
<h1>Hello, world!</h1>
<div class="btn-group">
<button type="button" class="btn btn-default">Left</button>
<button type="button" class="btn btn-default">Middle</button>
<button type="button" class="btn btn-default">Right</button>
</div>
<script src="<c:url value="/bootstrap/js/bootstrap.min.js"/>"></script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
我的目录项目结构:

任何想法如何正确添加引导程序?
如果您使用Springs框架,您可以在dispatcher-servlet.xml中添加这些行
<mvc:resources mapping="/bootstrap/**" location="/resources/" />
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
37426 次 |
| 最近记录: |