慕容022696
2019-05-04 11:52
代码如下:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>myAlert1:警示框1</title>
<link href="/bs/css/bootstrap.min.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="alert alert-warning">
登录名或密码错误,请重新登陆!
</div>
<div class="alert alert-info alert-dismissable" role="alert">
<button class="close" type="button" data-dismiss="alert">×</button>
请输入正确的密码
</div>
<script type="text/javascript" src="/bs/jquery-1.12.4.js"></script>
<script type="text/javascript" src="/bs/js/bootstrap.min.js"></script>
</body>
</html>
效果截图如下:
css文件等链接没有问题。
解决了
玩转Bootstrap(基础)
314546 学习 · 2275 问题
相似问题