作者linkhome (james)
看板PHP
标题[请益] 表格横向排列
时间Sun Apr 12 11:22:29 2015
想请教 表格横向排列的程式
想了很久...逻辑很差 想不出来
一排三个
x = 资料
假别 时数 假别 时数 假别 时数
xxx x xxx x xxx x
假别 时数 假别 时数 假别 时数
xxx x xxx x xxx x
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 125.227.112.25
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/PHP/M.1428808952.A.C12.html
1F:→ hom1130: 先搞懂td,tr 04/12 20:04
2F:→ NioTW: html 的问题,查 table tr td 04/13 23:14
3F:→ xdraculax: 常见有两种,我喜欢用巢状回圈 04/14 12:47
4F:→ xdraculax: while($row)包for($i=0;$i<3;$i++) 04/14 12:51
5F:→ xdraculax: $row=next($result)换下一笔 04/14 12:52
6F:→ xdraculax: 另一种是只有一层for $i<count 04/14 12:53
7F:→ xdraculax: 用 if($i%3==0)去写tr 04/14 12:54
8F:→ xdraculax: 不知道为什麽网路范例大多第二种 04/14 12:55
9F:→ MOONRAKER: 偷懒,懒得先把资料包好。 04/14 13:45