asp.net repeater 数据绑定 样式问题?
<divclass="group"><ul><li><divclass="pic"><ahref="#"><imgsrc="../images/jpg32.jpg"/><...
<div class="group">
<ul>
<li>
<div class="pic"><a href="#"><img src="../images/jpg32.jpg" /></a></div>
<h2>a</h2>
<p>bdafdfd</p>
<div class="clr"></div>
</li>
<li>
<div class="pic"><a href="#"><img src="../images/jpg32.jpg" /></a></div>
<h2>a</h2>
<p>bdafdfd</p>
<div class="clr"></div>
</li>
<li>
<div class="pic"><a href="#"><img src="../images/jpg32.jpg" /></a></div>
<h2>a</h2>
<p>bdafdfd</p>
<div class="clr"></div>
</li>
</ul>
<div class="clr"></div>
</div>
<div class="group">
<ul>
<li>
<div class="pic"><a href="#"><img src="../images/jpg32.jpg" /></a></div>
<h2>a</h2>
<p>bdafdfd</p>
<div class="clr"></div>
</li>
<li>
<div class="pic"><a href="#"><img src="../images/jpg32.jpg" /></a></div>
<h2>a</h2>
<p>bdafdfd</p>
<div class="clr"></div>
</li>
<li>
<div class="pic"><a href="#"><img src="../images/jpg32.jpg" /></a></div>
<h2>a</h2>
<p>bdafdfd</p>
<div class="clr"></div>
</li>
</ul>
<div class="clr"></div>
</div>
这种样式用 repeater 如何显示? (<li> 为6个) 展开
<ul>
<li>
<div class="pic"><a href="#"><img src="../images/jpg32.jpg" /></a></div>
<h2>a</h2>
<p>bdafdfd</p>
<div class="clr"></div>
</li>
<li>
<div class="pic"><a href="#"><img src="../images/jpg32.jpg" /></a></div>
<h2>a</h2>
<p>bdafdfd</p>
<div class="clr"></div>
</li>
<li>
<div class="pic"><a href="#"><img src="../images/jpg32.jpg" /></a></div>
<h2>a</h2>
<p>bdafdfd</p>
<div class="clr"></div>
</li>
</ul>
<div class="clr"></div>
</div>
<div class="group">
<ul>
<li>
<div class="pic"><a href="#"><img src="../images/jpg32.jpg" /></a></div>
<h2>a</h2>
<p>bdafdfd</p>
<div class="clr"></div>
</li>
<li>
<div class="pic"><a href="#"><img src="../images/jpg32.jpg" /></a></div>
<h2>a</h2>
<p>bdafdfd</p>
<div class="clr"></div>
</li>
<li>
<div class="pic"><a href="#"><img src="../images/jpg32.jpg" /></a></div>
<h2>a</h2>
<p>bdafdfd</p>
<div class="clr"></div>
</li>
</ul>
<div class="clr"></div>
</div>
这种样式用 repeater 如何显示? (<li> 为6个) 展开
展开全部
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<li>
<div class="pic"><a href="#"><img src="../images/jpg32.jpg" /></a></div>
<h2>a</h2>
<p>bdafdfd</p>
<div class="clr"></div>
</li>
</ItemTemplate>
</asp:Repeater>
<ItemTemplate>
<li>
<div class="pic"><a href="#"><img src="../images/jpg32.jpg" /></a></div>
<h2>a</h2>
<p>bdafdfd</p>
<div class="clr"></div>
</li>
</ItemTemplate>
</asp:Repeater>
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询