当前位置: 代码迷 >> ASP.NET >> Repeater 读数据与CSS组合
  详细解决方案

Repeater 读数据与CSS组合

热度:8159   发布时间:2013-02-25 00:00:00.0
Repeater 读数据与CSS结合
<ul class="featureUL">
  <li class="featureBox">
  <div class="box">
  <a rel="example_group" href="images/anli1.jpg">
  <img alt="首页模板" src="images/anli1.jpg" width="359" height="178">
  </a><span class="whiteword">文字介绍文字介绍</span><span class="blackbg"></span></div>
  <div class="box">
  <a rel="example_group" href="images/anli1.jpg">
  <img alt="首页模板" src="images/anli1.jpg" width="359" height="178">
  </a><span class="whiteword">文字介绍文字介绍</span><span class="blackbg"></span></div></li><li class="featureBox">
  <div class="box">
  <a rel="example_group" href="images/anli1.jpg">
  <img alt="首页模板" src="images/anli1.jpg" width="359" height="178">
  </a><span class="whiteword">文字介绍文字介绍</span><span class="blackbg"></span></div>
  <div class="box">
  <a rel="example_group" href="images/anli1.jpg">
  <img alt="首页模板" src="images/anli1.jpg" width="359" height="178">
  </a><span class="whiteword">文字介绍文字介绍</span><span class="blackbg"></span></div></li><li class="featureBox">
  <div class="box">
  <a rel="example_group" href="images/anli1.jpg">
  <img alt="首页模板" src="images/anli1.jpg" width="359" height="178">
  </a><span class="whiteword">文字介绍文字介绍</span><span class="blackbg"></span></div>
  <div class="box">
  <a rel="example_group" href="images/anli1.jpg">
  <img alt="首页模板" src="images/anli1.jpg" width="359" height="178">
  </a><span class="whiteword">文字介绍文字介绍</span><span class="blackbg"></span></div></li></ul>



------解决方案--------------------------------------------------------
<ul class="featureUL">

<asp:Repeater ID="rpCategory" runat="server"> 
<ItemTemplate>
<li class="featureBox">
<div class="box">
<a rel="example_group" href="images/anli1.jpg">
<img alt="<%# Eval("页面模板") %>" src="<%# Eval("img") %>" width="359" height="178">
  相关解决方案