DIV浮动

谁说胖子不能爱 提交于 2019-12-25 01:17:42

<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<div style="width:233px;height:20px;float:left;overflow:hidden;margin-left:5px;">

<div style="float:left;background-color:#E52300;height:10px;width:10px;font-size:8px;color:#ffffff;margin-top:2px;"><%#Container.ItemIndex+1 %></div>

<div style="float:left;font-size:12px;height:20px;" class="ss">&nbsp;<a href='<%#GetInfoViewLink((int)Eval("id")) %>' target="_blank" class="ss"><%# GetFixTitle(Eval("title").ToString(),20)%></a> </div>

</div>
</ItemTemplate>
</asp:Repeater>

让其可以绑定后横着显示

1 2

3 4

5 6

只为记忆代码

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!