求个HTML或CSS写法
现在:[新闻]
上海市举行--会议 〔日期〕
[公告]
关行举行 会计的通知 〔日期〕
想改为:
[新闻]上海市举行--会议 〔日期〕
[公告]关行举行 会计的通知 〔日期〕
--------------------编程问答-------------------- 新闻]
上海市举行--会议 〔日期〕
[公告]
关行举行 会计的通知 〔日期〕
可能多嵌套了个div
可以改为
<div>
[新闻] 上海市举行--会议 〔日期〕
</div>
</div> [公告] 关行举行 会计的通知 〔日期〕 </div>
--------------------编程问答-------------------- 把你的网页的HTML或前台代码相关的部分贴出来 --------------------编程问答-------------------- html:
<div id="News">
<div class="title">
<a href="classview.aspx?kid=12">更多>></a>新闻公告
</div>
<asp:Repeater ID="RNews" runat="server">
<HeaderTemplate>
<ul>
</HeaderTemplate>
<ItemTemplate>
<li><a href="newslist.aspx?kid=<%#DataBinder.Eval(Container.DataItem,"news_class") %>" >[<%#ClassFill(DataBinder.Eval
(Container.DataItem,"news_class")) %>]</a>
<a href="newsview.aspx?nid=<%#DataBinder.Eval(Container.DataItem,"news_id") %>&kid=<%#DataBinder.Eval(Container.DataItem,"news_class") %
>">
<%#DataBinder.Eval(Container.DataItem,"news_title") %></a> <span> [<%#MyCommand.TimeForm(DataBinder.Eval(Container.DataItem,"news_date"))
%>]</span>
</li>
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>
</div> --------------------编程问答-------------------- 你用的li看不出问题,可能是css中某元素的height或width越界了
你装了firefox吗,用firefox的firebug看看生成的html元素 --------------------编程问答-------------------- 先谢谢各位。 --------------------编程问答--------------------
+1
在模板里便把width改宽点试试 --------------------编程问答-------------------- 设置相应的高度 宽度 --------------------编程问答-------------------- 外层的DIV的宽度不够,加长点就好了。
补充:.NET技术 , ASP.NET