PHP+table生成柱状图
2015-10-09 14:43
645 查看
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> </head> <body> <center> <div style="border: 1px solid green; text-align: center; width: 1060px; font-size: 12px; height: 430px;"> <table width="1040" border="0"> <tr> <td width="20" valign="top"> <div style="height: 15px; margin-top: 45px;">600</div> <div style="height: 15px; margin-top: 45px;">500</div> <div style="height: 15px; margin-top: 45px;">400</div> <div style="height: 15px; margin-top: 45px;">300</div> <div style="height: 15px; margin-top: 45px;">200</div> <div style="height: 15px; margin-top: 45px;">100</div> <div style="height: 15px; margin-top: 45px;">0</div> </td> <td valign="bottom"> <table width="1000" border="0" style="background: url(1.jpg)" height="420"> <tr> <td> </td> <?php for($i=0; $i<30; $i++){ ?> <td height="400" width="10" valign="bottom" align="center"><?php $a=rand(0,360);echo intval($a/36*60)?><span style="background: pink; width: 20px; height: <?php echo $a?>px; display: inline-block;"></span></td> <td> </td> <?php } ?> </tr> </table> </td> </tr> </table> </div> </center> </body> </html>
相关文章推荐
- 一个最符合中国国情的工作流设计参考(包括PHP实现)
- php中删除、清空session的方式总结
- PHP+JS动态显示服务器时间,本地时间
- PHP MYSQL数据字典
- ThinkPHP去除url中的index.php
- PHP中获取当前页面的完整URL
- ftp主动与被动
- PHP中htmlentities,htmlspecialchars,urlencode和base64_encode的使用及区别
- PHP正则表达式的快速学习方法
- ThinkPHP让../Public在模板不解析(直接输出)的方法[原创]_php实例_脚本之家
- PHP异步执行技巧
- Xampp+Chrome+Sublime Text3+Xdebug调试PHP代码
- PHP中Closure类的使用方法及详解
- PHP CLI 模式详解
- Yii源码阅读笔记 - 路由解析
- PHP 开发中的外围资源性能分析(一)
- Yii源码阅读笔记 - 请求处理基本流程
- PHP 开发中的外围资源性能分析(一)
- 如何解决phpmyadmin导入数据库文件最大限制2048KB
- 《php和mysql web开发》笔记——第11章 使用MySQL从Web访问数据库