bootstrap+jsp常用的配置文件

<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <!--设置字符集-->
    <meta charset="utf-8">
    <!--设置: 支持IE浏览器-->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!--
        viewport: 视口
         width=device-width  页面的宽度等于设备的宽度.
         initial-scale=1     设置缩放比(范围:1-5), 但是只针对于手机端有效.
    -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->

    <!--标题-->
    <title>Bootstrap 101 Template</title>

    <!-- 引入BootStrap样式 -->
    <link href="./bootstroop/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="./bootstroop/css/bootstrap-theme.min.css" rel="stylesheet"/>
    <!-- 引入jQuery文件 -->
    <script src="./bootstroop/js/jquery-1.11.3.min.js"></script>
    <!-- 引入BootStrap的js脚本文件(插件) -->
    <script src="./bootstroop/js/bootstrap.min.js"></script>
</head>
<body>
<!--布局方式-->
<div class="container">
    <!---->
    <div class="row">
        <table class="table table-bordered table-hover">
            <tr>
                <th>uid</th>
                <th>用户名</th>
                <th>密码</th>
            </tr>
            <c:forEach items="${users}" var="user" varStatus="index">
                <c:if test="${index.index%2==0}">
                    <tr class="active">
                        <td>${user.uid}</td>
                        <td>${user.username}</td>
                        <td>${user.password}</td>
                    </tr>
                </c:if>
                <c:if test="${index.index%2==1}">
                    <tr class="success">
                        <td>${user.uid}</td>
                        <td>${user.username}</td>
                        <td>${user.password}</td>
                    </tr>
                </c:if>
            </c:forEach>
        </table>

    </div>
</div>
</body>
</html>
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值