php循环输出怎么实现一行输出两个主题?
来源:百度知道 编辑:UC知道 时间:2024/06/30 10:50:10
我是保存的别人的网站,想用这个做模板,他的代码是:
<UL>
<LI>·<A href="http://post.news.tom.com/s/CF0009231070.html?source=HP_TOPIC"
target=_blank>伊朗革命卫队“军管”互联网</A> <A
href="http://post.news.tom.com/s/1E0008F11501.html?source=HP_TOPIC"
target=_blank>网上曝光抗议者被抛尸(图)</A> </LI>
<LI>·<A href="http://news.tom.com/2009/zhuliugan/index.html?source=HP_TOPIC"
target=_blank>内地甲型流感确诊264例</A> <A
href="http://post.news.tom.co
<UL>
<LI>·<A href="http://post.news.tom.com/s/CF0009231070.html?source=HP_TOPIC"
target=_blank>伊朗革命卫队“军管”互联网</A> <A
href="http://post.news.tom.com/s/1E0008F11501.html?source=HP_TOPIC"
target=_blank>网上曝光抗议者被抛尸(图)</A> </LI>
<LI>·<A href="http://news.tom.com/2009/zhuliugan/index.html?source=HP_TOPIC"
target=_blank>内地甲型流感确诊264例</A> <A
href="http://post.news.tom.co
<li>标签本身就是占据了一行的,这个与php循环输出无关。
你要一行两个标题,就要改写<li>的css样式,限制它的width,然后就自然会两个一行的。
你要看看css,更改li标签。