日期:2014-05-17  浏览次数:20562 次

新闻列表的样式


我是做了一个div选项卡,在不同的选项卡中显示不同的新闻
但是只显示一排新闻,右边有很多空白的地方都浪费了
能不能控制显示两竖排呀??
我是用的<ul><li>列表

我的代码

    <asp:Repeater ID="RepeaterDataShow" runat="server">
    <HeaderTemplate><ul></HeaderTemplate>
    <ItemTemplate>
    <li><%#Eval("c_resourcetitle") %></li>
    </ItemTemplate>
    <FooterTemplate></ul></FooterTemplate>
    </asp:Repeater>

------解决方案--------------------
<style>
#a{width:400px;height :200px;background:black;position:relative;color:white}
li{display:block;float:left;width:200px;height:30px;background:red}
</style>

<div id="a">
    <li>1</li>
    <li>2</li>
    <li>3</li>
    <li>4</li>
    <li>5</li>
    <div id="b"></div>
</div>


chorme+ie9通过!!