The string "PAYPALISHIRING" is
written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
A P L S I ...
分类:
其他好文 时间:
2014-09-13 22:52:36
阅读次数:
209
Mask与Display只显示年月2012-02这种格式,但用户选择起来还是不爽,体验太差。效果如下:代码:using Microsoft.VisualBasic;using System;using System.Collections;using System.Collections.Gener...
分类:
其他好文 时间:
2014-09-13 18:37:35
阅读次数:
266
1:单行文字垂直居中: 如果一个容器中只有一行文字的话,定义height(高度)和 line-height(行高)相等即可。 如:aa2:多行文本固定高度垂直居中:核心:display:table 和display:table-cell ;vertical-align:middle;兼容:ie7+....
分类:
Web程序 时间:
2014-09-12 21:55:34
阅读次数:
250
css:.box-wrap{display:table;width:200px;height:200px;*position:relative;}/*最外边的容器,需固定宽高*/.box-hack{display:table-cell;height:200px;vertical-align:midd...
分类:
Web程序 时间:
2014-09-12 20:29:33
阅读次数:
200
在HTML头部添加返回顶部然后 jquery 中写入为了美观 css样式 增加自己的图片地址p#back-to-top { position: fixed; display: none; bottom: 100px; right: 80px;} p#back-to-top a { text-alig...
分类:
Web程序 时间:
2014-09-12 18:39:13
阅读次数:
251
//下载 function Download(id) { var form = $(""); //定义一个form表单 form.attr('style', 'display:none'); //在form表单中添加查询参数 form....
分类:
其他好文 时间:
2014-09-12 16:50:23
阅读次数:
170
清除图片下方出现几像素的空白间隙方法1:img{display:block;}方法2:img{vertical-align:top;}除了top值,还可以设置为text-top | middle | bottom | text-bottom,甚至特定的和值都可以方法3:#test{font-size...
分类:
Web程序 时间:
2014-09-12 08:51:13
阅读次数:
297
通过调用zen_get_products_base_price($products_id)获取原价,zen_get_products_special_price($products_id)获取特价,进而计算百分比。$display_normal_price = zen_get_products_ba...
分类:
其他好文 时间:
2014-09-11 22:17:02
阅读次数:
779
【导读】站长们都知道,新站刚建设不久,经常会出现网站被黑的情况,张玉淦博客前几个月也被黑,页面底部挂了很多垃圾链接,这些链接是通过script来完成,自己也不知道要从哪里删除,后来还是之前一个同事帮忙处理掉,我相信很多站长也有相同经历,那么,网站被黑到底有哪几种..
分类:
Web程序 时间:
2014-09-11 19:36:42
阅读次数:
200
一、备份 1.锁定数据库: use admin db.runCommand({fsync:1,lock:1}) { “info” : “now locked against writes, use db.fsyncUnlock() to unlock”, “seeAlso” : “http://www.mongodb.org/display/DOCS/fsy...
分类:
数据库 时间:
2014-09-11 17:37:42
阅读次数:
237