td

php导出excel方法: 所有语言通用

本秂侑毒 提交于 2019-12-06 02:29:30
后端: //导出 if($_GPC['export']==1){ $list_export = pdo_fetchall($sql.$where); include $this->template('export'); } 前端: {php echo header('Content-type: application/vnd.ms-excel');} {php echo header('Content-Disposition: attachment; filename="二维码扫描记录表'.date('Y-m-d H:i').'导出.xls"');} <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns=" http://www.w3.org/TR/REC-html40" > <head> <meta http-equiv=Content-Type content="text/html; charset=utf8"> <meta name=ProgId content=Excel.Sheet> <meta name=Generator content="Microsoft Excel 12"> </head>

HTML语法

早过忘川 提交于 2019-12-05 23:52:40
整理了一下HTML的语法,做下记录。 1 <html> 2 3 <head> 4 <meta charset="utf-8"> 5 <title>html的基本语法</title> 6 </head> 7 8 <body> 9 10 <h1>标题1</h1> 11 <h2>标题2</h2> 12 <h3>标题3</h3> 13 <h4>标题4</h4> 14 <h5>标题5</h5> 15 <h6>标题6</h6> 16 17 <p>段落 &nbsp &lt &gt &quot &copy &reg</p> <!--对应:段落内容,空格,小于号<,大于号>,双引号",版权符©,注册符®--> 18 <div>块元素</div> 19 <span>凸显文字</span> 20 21 <b>粗体</b> 22 <i>倾斜</i> 23 <u>下划线</u> 24 <em>强调</em> 25 <strong>加强强调</strong> 26 27 <br> <!--换行--> 28 <hr> <!--水平线--> 29 30 <a href="Demo1.html" target="_self">超链接(跳转到html界面)</a> <!--_self:原窗口打开,_blank:新窗口打开,_top:顶框架,_parent:父框架--> 31 <a href="Demo1.html">

Html,css构建一个信息框,练习201911281028

倖福魔咒の 提交于 2019-12-05 22:16:52
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title></title> <style type="text/css"> #identity1{ position: relative; left: 0px; top: 0px; width: 0px; height: 0px; border-left: 34px solid transparent; border-right: 34px solid #96BBFF; border-bottom: 23px solid transparent; z-index: 0; } #identity1:after{ content: ''; position: absolute; left: -30px; top: 1px; border-left: 34px solid transparent; border-right: 34px solid

HTML 表格

丶灬走出姿态 提交于 2019-12-05 20:44:56
表格本身并不是用来布局,而是用来展示表格数据 1.基本结构 table:表格标签(默认独占一行,宽度100%) tr:行标签 td/th:单元格标签,其中th标签中的文本会显示为粗体居中(单元格的宽度由同一列中的最宽的那个元素决定) <body style="padding:30px;"> <table> <tr> <th>姓名</th> <th>年龄</th> </tr> <tr> <td>张三丰</td> <td>120</td> </tr> <tr> <td>杨过</td> <td>24</td> </tr> </table> </body> 2.caption标签 caption标签用来定义表格的标题,caption标签的文本会居中显示 <body style="padding:30px;"> <table> <caption>我是表格的标题</caption> <tr> <th>姓名</th> <th>年龄</th> <th>简介</th> </tr> <tr> <td>张三丰</td> <td>120</td> <td>本名张君宝,自创太极拳剑,将武当派发扬光大</td> </tr> <tr> <td>杨过</td> <td>24</td> <td>金庸武侠小说《神雕侠侣》的主人公</td> </tr> </table> </body> 3.为表格添加边框

vue 计算属性

喜夏-厌秋 提交于 2019-12-05 19:00:18
有时候我们可能需要在{{}}里进行一些计算在展示出来数据: <div class="app"> <table border="1"> <thead> <th>学科</th> <th>分数</th> </thead> <tbody> <tr> <td>数学</td> <td><input type="text" v-model="Math"></td> </tr> <tr> <td>英语</td> <td><input type="text" v-model="English"></td> </tr> <tr> <td>化学</td> <td><input type="text" v-model="chemistry"></td> </tr> <tr> <td>总分</td> <td>{{Math + English + chemistry}}</td> </tr> <tr> <td>平均分</td> <td>{{(Math + English + chemistry)/3}}</td> </tr> </tbody> </table> </div> var app = new Vue({ el:'.app', data:{ Math:88, English:77, chemistry:99, } }); 虽然能解决问题,但是特别不不清晰。 这种情况下

jq实现表格多行列复制

孤者浪人 提交于 2019-12-05 17:34:39
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> * { margin: 20px; padding: 20px; } </style> </head> <body> <table border="1" cellpadding="0"> <tr> <th> <button id="copy">复制</button> </th> <th>B</th> <th>C</th> <th>D</th> <th>E</th> </tr> <tr> <td class="shuzi">aaaaaaaaaaaaaa</td> <td>2</td> <td>3</td> <td>4</td> <td>5</td> </tr> <tr> <td class="shuzi">bbbbbbbbbbbbb</td> <td>2</td> <td>3</td> <td>4</td> <td>5</td> </tr> <tr> <td class="shuzi">ccccccccccc</td> <td>2</td> <td>3</td> <td>4</td> <td>5</td> </tr> <tr> <td class="shuzi">dddd</td> <td>2</td> <td>3</td> <td

一百零九:CMS系统之前端根据不同权限渲染不同菜单

杀马特。学长 韩版系。学妹 提交于 2019-12-05 15:38:11
给用户绑定为开发者 个人信息中渲染角色和权限 {% extends 'cms/cms_base.html' %}{% block title %} 个人信息{% endblock %}{% block page_title %} {{ self.title() }}{% endblock %}{% block main_content %} {% set user = g.cms_user %} <table class="table table-bordered"> <tbody> <tr> <td>用户名:</td> <td>{{ user.username }}</td> </tr> <tr> <td>邮箱:</td> <td>{{ user.email }}</td> </tr> <tr> <td>角色:</td> <td> {% for role in user.roles %} {{ role.name }} {% if not loop.last %},{% endif %} {% endfor %} </td> </tr> <tr> <td>权限:</td> <td> {% for role in user.roles %} {{ role.desc }} {% if not loop.last %}/{% endif %} {% endfor %} </td> <

dede list调用 内容模型 附件

陌路散爱 提交于 2019-12-05 10:08:19
当我们在list列表页调用内容模型的附件时,会调用出来一个表,数据被包含在表格里面 下面修改这个表格 找到 templets》system》channel_addon.htm文件 <table width='300'> <tr> <td height='30' width='20'><a href='~link~' target='_blank'><img src='~~cfg_phpurl~~/img/addon.gif' border='0' align='center'></a></td> <td><a href='~link~' target='_blank'><u>~link~</u></a></td> </tr> </table> 我们所用到的数据连接 就是 ~link~ 直接吧表格里面的其他的全部删除完,只剩下 ~link~ 就ok 了 来源: https://www.cnblogs.com/andyhxl/p/11920920.html

localstorage浏览器储存

风流意气都作罢 提交于 2019-12-05 08:31:32
需求 a.html页面生成订单信息,b.html中调用。 通过不操作数据库,直接在浏览器自带的数据库中进行操作,当然主要是对Json数据的操作。 a.html代码部分: <!--html--> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>页面1</title> </head> <body> <table > <tr> <td>编号</td> <td>名称</td> <td>类别</td> <td>借书日</td> <td>还书日</td> <td>金额</td> </tr> <tr> <td id="a">1</td> <td id="b">边城</td> <td id="c">小说</td> <td id="d">2017-3-2</td> <td id="e">2017-3-25</td> <td id="f">20</td> </tr> </table> </body> </html> <!--script--> <script> /

第二十一讲:tapestry的LinkSubmit等同于submit来使用

不问归期 提交于 2019-12-05 06:33:14
tapestry的LinkSubmit其实就等同于一个submit按钮,它的存在可使前端开发很容易的修改<a>样式,非常容易做出好的按钮样式。源码如下: LinkSubmits1.java /** * 项目名称:TapestryStart * 开发模式:Maven+Tapestry5.x+Tapestry-hibernate+Mysql * 网址: http://www.flywind.org * 版本:1.0 * 编写:飞风 * 时间:2012-02-29 */ package com.tapestry.app.pages; import org.apache.tapestry5.annotations.Component; import org.apache.tapestry5.annotations.Persist; import org.apache.tapestry5.annotations.Property; import org.apache.tapestry5.corelib.components.Form; import org.apache.tapestry5.corelib.components.TextField; public class LinkSubmits1 { @Persist @Property private String firstName;