Home > Web Front-end > HTML Tutorial > 新闻列表的样式_html/css_WEB-ITnose

新闻列表的样式_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:39:17
Original
1846 people have browsed it


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

    我的代码
        <asp:Repeater ID="RepeaterDataShow" runat="server">    <HeaderTemplate><ul></HeaderTemplate>    <ItemTemplate>    <li><%#Eval("c_resourcetitle") %></li>    </ItemTemplate>    <FooterTemplate></ul></FooterTemplate>    </asp:Repeater>
    Copy after login


    回复讨论(解决方案)

    <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>
    Copy after login


    chorme+ie9通过!!

    谢谢楼上的朋友

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template