摘要:
绝对垂直居中 可以用以下两种方式解决 1.设置父级容器相对定位,子级容器绝对定位 父级:position:relative; 子级:position: absolute; top:50%; left:0; margin-top:-halfHeight; 这种做法不会有浏览器的兼容问题, 并且 同级盒 阅读全文
2017年6月15日
2017年5月18日
摘要:
学习JS,练习一个随机获得数组中的一位数 虽然代码多数不是我写的,但是这种逻辑还是要学习的 一点点来吧 DOM 部分 阅读全文
2016年7月19日
2012年10月16日
摘要:
网上信息参差不齐,所以找到一个能用得信息不容易Navicat8 注册码姓名(Name):随意写组织(Organization):随意写注册码(Serial):NAVJ-W56S-3YUU-MVHV 阅读全文
2012年9月13日
摘要:
测试过很多方法,这个还算比较好用的 ,应该是因为我比较菜,很多东西都不懂,希望看到得大侠能解决中间没有完善得地方<?phpinclude("config.php");// load libraryrequire 'php-excel.class.php';// create a simple 2-dimensional array//@mysql_query("set character set gb2312"); $strSql="select * from booklist"; $result=mysql_q 阅读全文
摘要:
用得这个方式,会有乱码还没有解决<?phpinclude("config.php");//包含连接数据库文件$strSql="select * from booklist";$result=mysql_query($strSql);// include the php-excel classrequire (dirname (__FILE__) . "/class-excel-xml.inc.php");//包含类文件// create a dummy array$doc = array ( 1 => array (&qu 阅读全文
摘要:
因为要为公司导出一份数据,查找了很多资料,很多看不懂,很多还存在编码问题,乱七八槽的,这份资料虽然也是借鉴的,不过因为用起来方便,所以自己保留一份!<?phpexport_csv();function export_csv() { $filename = date('YmdHis').".csv";//文件名 header("Content-type:text/csv"); header("Content-Disposition:attachment;filename=".$filename); header(& 阅读全文
2011年11月14日
摘要:
练习,已达到熟练的运动div布局,代码如下:<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style type="text/css">#top,#header,#banner,#content,#footer,#fo 阅读全文
摘要:
这里为了熟练运用div进行了网页简单模块布局的锻炼实现具体代码如下:<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style type="text/css">body{background:#fff;font:13p 阅读全文
摘要:
这里要实现得是,两边固定不变,变化中间的效果实现代码如下:<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style type="text/css">#header,#content,#footer{backgroun 阅读全文