一个html布局的模板
2016-04-19 18:44
716 查看
<!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" /> <style> .divStyle{width:99%; height:auto; float:left;} .divStyle1{display:block; width:38%;float:left; text-align:right;} .divStyle2{display:block; width:61%; float:left;} .fontStyle{font-family:SimSun;color: #666;} .fontStyle1{;font-family:SimSun;color: #000;} </style> </head> <body> <div style="width:99%;height:170px;"> <div style="width:100%; height:70px; text-align:center"> <img style="display:inline-block; width:290px; height:70px; float:left" src='alibaba.jpg'/> <span style="display:inline-block; width:280px; float:left; font-size:30px; text-align:center"><strong> 费用报销</strong> </span> <span style="display:inline-block; width:180px; float:left; font-size:30px; text-align:center"> </span> <img style="display:inline-block; width:150px; height:50px; float:left" src='jBarCOde.jpg'/> </div> <div style="width:99%; height:30px;"><span><h4>报销概要</h4></span></div> <!--模板--> <div class='divStyle'> <div style='width:32%; float:left;'> <span class='divStyle1'>申请人:</span> <span class='divStyle2'>101010 周周</span> </div> <div style='width:35%; float:left;'> <span class='divStyle1'>日期:</span> <span class='divStyle2'>2014-11-11</span> </div> <div style='width:33%; float:left;'> <span class='divStyle1'>报销单号:</span> <span class='divStyle2'>123456789</span> </div> </div> <!--模板--> <!--模板--> <div class='divStyle'> <div style='width:32%; float:left;'> <span style='display:block; width:38%;float:left; text-align:right'>公司:</span> <span style='display:block; width:61%; float:left'>阿里巴巴中国有限公司</span> </div> <div style='width:35%; float:left;'> <span style='display:block; width:38%;float:left; text-align:right'>部门:</span> <span style='display:block; width:61%; float:left'>海外事业部门</span> </div> </div> <!--模板--> <!--模板--> <div class='divStyle'> <div class='fontStyle'> <div style='width:99%; float:left;'> <span style='display:block; width:12.2%;float:left; text-align:right'>报销说明:</span> <span style='display:block; width:80%; float:left'>阿里巴巴中国有限公司的报销</span> </div> </div> </div> <!--模板--> <div style='width:99%; height:50px; float:left'><span><h4>报销明细</h4></span></div> <div style='width:99%; height:20px; float:left'> <table border="1" cellspacing="0" cellpadding="0" style='width:99%; height:20px; float:left ;table-layout:fixed; word-break:break-strict;'> <tr> <th>费用类型</th> <th>费用发生时间</th> <th>详细信息</th> <th>消费金币/币种</th> <th>报销汇率</th> <th>报销金额</th> </tr> <tr class='fontStyle'> <th>差旅-飞机票</th> <th>2016-3-14</th> <th>出发地-目的地:广州-杭州</th> <th>980(CNY)</th> <th>1000</th> <th>980(CNY)</th> </tr> </table> </div> <div style='width:99%; height:160px;'><span></span></div> <div class='divStyle'> <div style='width:70%; float:left;'> <span style='display:block; width:100%;float:right;'></span> </div> <div style='width:19%; float:left;'> <div class='fontStyle'> <span style='display:block; width:80%;float:right;'><h5>收到的报销金额(CNY):</h5></span> </div> </div> <div style='width:9%; float:left;'> <span style='display:block; width:100%;float:left;'><h2>980</h2></span> </div> </div> </div> </body> </html>
相关文章推荐
- 有关HTML表格边框的设置小技巧
- HTML <input> 标签的 type 属性
- <!DOCTYPE html>的作用
- XML 基础
- XSL 语言(EXtensible Stylesheet Language)
- HTML基础学习(一)—HTML
- [转]HTMl中Meta标签详解以及meta property=og标签含义
- HTML转义字符
- [RFC1867] HTML中基于表单的文件上传
- HTML加载顺序总结测试
- base64 html 图片
- HTML特殊符号对照表
- HTML小技巧
- HTML头部声明文件类型
- HTML元素特性的操作方法
- angular 绑定数据时添加HTML标签被识别的问题
- AntiXSS - 支持Html同时防止XSS攻击
- html
- itext2.0.8把html转换为pdf及解决中文不显示办法
- 学习笔记--Ajax:html格式返回数据