php 分两排展示数据

WBOY
Release: 2016-06-13 13:08:06
Original
805 people have browsed it

php 分两排显示数据



分排显示建议使用CSS处理,并非PHP程序逻辑范围如你现在程序逻辑表示一排显示7条数据,假设

你的HTML代码如下:111...    777你可以修改 $pagesize=7; 使他显示14条然后使用CSS,让每


一个LI元素float:left;然后指定每一个LI元素的最大宽度,让他做到每一行只能容下两列,这样

便可以实现14条数据分两列显示,日后修改板式只需修改CSS即可。记住,页面表现层的东西永远

不要试图用程序逻辑来代替,用HTML和CSS

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