jsp中的网格如何使用HTML和CSS [英] how do grid in jsp with using HTML and CSS

查看:112
本文介绍了jsp中的网格如何使用HTML和CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在jsp中使用html和css创建网格,我该怎么做。

i need to create grid in jsp with using html and css only how can i do it.

推荐答案

你好,



这是一个可以帮助你入门的小片段。

Hello,

Here is a small snippet which will get you started.
<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
</head>
<body>
    <div id="mygrid_container">
        <table class="mygrid_table">
            <thead>
               <tr>
                   <th class="idColumn"<ID</th>
                   <th class="textColumn"<Name</th>
                   <th class="numColumn"<Age</th>
               </tr>
            </thead>
            <tbody>
<c:forEach items="


{requestScope.empList} var = _ empoyee >
< tr >
< td > < c:out value =
{requestScope.empList}" var="_empoyee"> <tr> <td><c:out value="


{_ employee.id} / > < / td >
< td > < c:out < span class =code-attribute> value =
{_employee.id}"/></td> <td><c:out value="


这篇关于jsp中的网格如何使用HTML和CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆