<table border="0" cellspacing = "0" id = "shoppingcartinfo"> <thead> <th width = "135px" height = "42px">编号</th> <th width = "150px" height = "42px">商品名</th> <th width = "150px" height = "42px">单价</th> <th width = "240px" height = "42px">购买数量</th> <th width = "150px" height = "42px">小计</th> <th width = "135px" height = "42px">操作</th> </tr> </thead> <tbody><tr> <td width = "135px" height = "42px"><%=application.getAttribute("id") %></td> <td width = "150px" height = "42px"><%=application.getAttribute("goods_name")%></td> <td width = "150px" height = "42px" class="price"> <img src="yuan.jpg" width="20" heigth="20"> <%=application.getAttribute("goodspic")%> </td> <td width = "240px" height = "42px" id="car"> <input type="button" class="decrease" value="-"> <input type="text" class="quantity" value="0"/> <input type="button" class="increase" value="+"> </td> <td width = "150px" height = "42px"> <span class="subtotal"></span> </td> <td width = "135px" height = "42px"> <input type="button" class="deldet" value="删除此商品"> </td> </tr>根据此代码美化表格
时间: 2023-10-22 13:03:31 浏览: 32
<body>
<table border="1" cellspacing="0" id="shoppingcartinfo">
<thead>
<tr>
<th width="135px" height="42px">编号</th>
<th width="150px" height="42px">商品名</th>
<th width="150px" height="42px">单价</th>
<th width="240px" height="42px">购买数量</th>
<th width="150px" height="42px">小计</th>
<th width="135px" height="42px">操作</th>
</tr>
</thead>
<tbody>
<tr>
<td width="135px" height="42px"><%=application.getAttribute("id") %></td>
<td width="150px" height="42px"><%=application.getAttribute("goods_name")%></td>
<td width="150px" height="42px" class="price">
<img src="yuan.jpg" width="20" height="20">
<%=application.getAttribute("goodspic")%>
</td>
<td width="240px" height="42px" id="car">
<input type="button" class="decrease" value="-">
<input type="text" class="quantity" value="0"/>
<input type="button" class="increase" value="+">
</td>
<td width="150px" height="42px">
<span class="subtotal"></span>
</td>
<td width="135px" height="42px">
<input type="button" class="deldet" value="删除此商品">
</td>
</tr>
</tbody>
</table>
</body>
相关推荐
<%-- Created by IntelliJ IDEA. User: syp Date: 2023/5/22 Time: 13:59 To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>Denglu</title> </head> <body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"> <fieldset style="width: auto; margin: 0px auto"> <legend> 欢迎使用常州工业职业技术学院人员管理系统 </legend>
<form action="loginSuccess.action"> 用户:<input type="text" name="username"/>
密码:<input type="password" name="password"/>
<input type="submit" value="登录"/> 注册 </form> </fieldset> </body> </html>
<form action="loginSuccess.action"> 用户:<input type="text" name="username"/>
密码:<input type="password" name="password"/>
<input type="submit" value="登录"/> 注册 </form> </fieldset>