问答详情
源自:7-5 警示框--可关闭的警示框

警示框没有样式效果

代码如下:

<%@ 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">&times;</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>

效果截图如下:

https://img2.mukewang.com/5ccd0c620001cec005600274.jpg

css文件等链接没有问题。


提问者:慕容022696 2019-05-04 11:52

个回答

  • 慕容022696
    2019-05-04 12:01:19

    解决了