td单元格内显示的文字太长时,总是会自动分行,把表格撑高了,或者密密麻麻的一片,总是不好看~俺一开始的做法是用php的mb_substr()来截取定长的字符串,但是,因为中英文字节的差异,比如,10个中文字符就比10个英文字符要长得多,在网页上显示起来就忽长忽短,无法对齐,很不美观~~解决办法~第一...
分类:
Web程序 时间:
2014-08-12 12:57:54
阅读次数:
245
原地址:http://blog.csdn.net/newjerryj/article/details/4616819在硬件工程师和普通用户看来,内存就是插在或固化在主板上的内存条,它们有一定的容量——比如64 MB。但在应用程序员眼中,并不过度关心插在主板上的内存容量,而是他们可以使用的内存空间——...
分类:
其他好文 时间:
2014-08-11 17:42:22
阅读次数:
221
php 自带的字符串翻转函数 strrev() 只支持英文,不支持中文,在网上找到了一个方法,支持中英文: <?php
function?reverse($str,?$encode?=?‘UTF-8‘)?{
????$n?=?mb_strlen($str,?$encode);
????...
分类:
Web程序 时间:
2014-08-11 15:27:12
阅读次数:
231
树状数组套主席树,维护区间动态第K大。。。
ZOJ给的空间太小,而主席树要求的空间太大,只能到BZOJ上交
1901: Zju2112 Dynamic Rankings
Time Limit: 10 Sec Memory Limit: 128 MB
Submit: 4186 Solved: 1754
[Submit][Status]
Description
给定一个含...
分类:
其他好文 时间:
2014-08-11 00:29:21
阅读次数:
313
Description
Problem A
Expression Bracketing
Input: standard input
Output: standard output
Time Limit: 1 second
Memory Limit: 32 MB
Inthis problem you will have to find in how many ways
...
分类:
其他好文 时间:
2014-08-10 15:47:00
阅读次数:
247
Description
Problem D
The Grand Dinner
Input: standard input
Output: standard output
Time Limit: 15 seconds
Memory Limit: 32 MB
Each team participating in this year?s ACM World Finals cont...
分类:
其他好文 时间:
2014-08-10 13:02:20
阅读次数:
274
Description
Problem D
The Book-shelver’s Problem
Input: standard input
Output: standard output
Time Limit: 5 seconds
Memory Limit: 32 MB
You are given a collection of books, which must...
分类:
其他好文 时间:
2014-08-10 10:24:30
阅读次数:
317
查看当前目录的大小du-sh.查看当前目录下所有文件或者目录的大小du-sh*显示前10个占用空间最大的目录du-s*|sort-nr|head显示前10个占用空间最大的文件,使用MB为单位du*--block-size=MB|sort-nr|head或者也可写成du*-BMB|sort-nr|head
分类:
系统相关 时间:
2014-08-08 18:32:06
阅读次数:
246
-------------------OpenNebula 深入分析-------------------#容量清单 属性 描述 NAME 如果名字是空的,那么默认名字是:one- MEMORY 单位是Mb,是为虚拟机RAM分配的内存大小 CPU Percentage of CPU divi...
分类:
其他好文 时间:
2014-08-08 17:51:06
阅读次数:
487
http://acm.neu.edu.cn/hustoj/problem.php?id=1444
OJ问题论坛发帖http://t.cn/zjBp4jd FAQ http://t.cn/zjHKbmN Linux问题看http://t.cn/aWnP1n
1444: Devour Magic
时间限制: 1 Sec 内存限制: 256 MB
提交: 129...
分类:
其他好文 时间:
2014-08-08 09:39:15
阅读次数:
251