请问如何遍历输出4个这样的div,使用什么标签呢?谢谢 50
<divclass="pricing-grid"><divclass="light-plan"><h3>融资产品1</h3><p>XX银行</p></div><divcl...
<div class="pricing-grid">
<div class="light-plan">
<h3>融资产品1</h3>
<p>XX银行</p>
</div>
<div class="price-list">
<ul>
<li>月利率(%):1.10</li>
<li>额度(万):1-100</li>
<li>开放区域:全国</li>
</ul>
</div>
<div class="buy nowb"><a href="#">申请</a></div>
</div> 展开
<div class="light-plan">
<h3>融资产品1</h3>
<p>XX银行</p>
</div>
<div class="price-list">
<ul>
<li>月利率(%):1.10</li>
<li>额度(万):1-100</li>
<li>开放区域:全国</li>
</ul>
</div>
<div class="buy nowb"><a href="#">申请</a></div>
</div> 展开
2个回答
展开全部
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>、
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<c:forEach begin="0" end="3">
<div class="pricing-grid">
<div class="light-plan">
<h3>融资产品1</h3>
<p>XX银行</p>
</div>
<div class="price-list">
<ul>
<li>月利率(%):1.10</li>
<li>额度(万):1-100</li>
<li>开放区域:全国</li>
</ul>
</div>
<div class="buy nowb"><a href="#">申请</a></div>
</div>
</c:forEach>
</body>
</html>
验证可行,用jstl库 ,<c:forEach>标签 手打请采纳
pageEncoding="UTF-8"%>、
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<c:forEach begin="0" end="3">
<div class="pricing-grid">
<div class="light-plan">
<h3>融资产品1</h3>
<p>XX银行</p>
</div>
<div class="price-list">
<ul>
<li>月利率(%):1.10</li>
<li>额度(万):1-100</li>
<li>开放区域:全国</li>
</ul>
</div>
<div class="buy nowb"><a href="#">申请</a></div>
</div>
</c:forEach>
</body>
</html>
验证可行,用jstl库 ,<c:forEach>标签 手打请采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询