在网页排版布局中比如文章列表标题排版,无论多少文字均不希望换行显示,需要强制在一行显示完内容。这就可以nobr标签来实现。它起到的作用与word-break:keep-all 是一样的。nobr 是 No Break 的缩写,意思是禁止换行。通常在浏览器上显示的文档会在到达浏览器的横幅底端时自动换行...
分类:
Web程序 时间:
2014-11-17 00:20:59
阅读次数:
293
http://www.aqee.net/kiss-my-yagni/我们都知道KISS (Keep It Simple, Stupid)和 YAGNI (You Ain’t Gonna Need It)软件开发原则,然而,过度复杂的软件仍然随处可见。假设我们需要一个应用服务。没错,缺少分布式事务管理...
分类:
其他好文 时间:
2014-11-16 08:15:51
阅读次数:
267
常用的就不说了,虽然是菜鸟,但是教程大大有。点滴1:保持层次:使用chipscope时非常实用,右键synthesize-XST(没事到处瞎点,没准有惊喜),process properties-keep_hierarchy-YES 。property display level(’小字部分‘)选择...
分类:
其他好文 时间:
2014-11-15 21:31:59
阅读次数:
386
Here is a more complete answer with regard to InnoDB. It is a bit of a lengthy process, but can be worth the effort. Keep in mind that /var/lib/mysql/ibdata1 is the busiest file in the InnoDB infra...
分类:
数据库 时间:
2014-11-11 12:55:04
阅读次数:
268
剑指offer中题目:http://ac.jobdu.com/problem.php?pid=1516
题目描述:
输入一个整数数组,实现一个函数来调整该数组中数字的顺序,使得所有的奇数位于数组的前半部分,所有的偶数位于位于数组的后半部分,并保证奇数和奇数,偶数和偶数之间的相对位置不变。
输入:
每个输入文件包含一组测试案例。
对于每个测试案例,第一行输入...
分类:
编程语言 时间:
2014-11-11 12:45:52
阅读次数:
202
DescriptionBackgroundThere are a lot of monkeys in a mountain. Every one wants to be the monkey king. They keep arguing with each other about that for...
分类:
其他好文 时间:
2014-11-08 13:37:06
阅读次数:
165
2048 2048 New Game Keep going Try again ...
分类:
其他好文 时间:
2014-11-08 13:13:37
阅读次数:
220
题目描述:输入一个递增排序的数组和一个数字S,在数组中查找两个数,是的他们的和正好是S,如果有多对数字的和等于S,输出两个数的乘积最小的。
输入:
每个测试案例包括两行:
第一行包含一个整数n和k,n表示数组中的元素个数,k表示两数之和。其中1
第二行包含n个整数,每个数组均为int类型。
输出:对应每个测试案例,输出两个数,小的先输出。如果找不到,则输出“-1 -1”...
分类:
其他好文 时间:
2014-11-07 23:33:44
阅读次数:
425
一般的文字截断(适用于内联与块):.text-overflow { display:block;/*内联对象需加*/ width:25em; word-break:keep-all;/* 不换行 */ white-space:nowrap;/* 不换行 */ overflow:hidden;/*.....
分类:
Web程序 时间:
2014-11-07 18:47:11
阅读次数:
224
Description Background There are a lot of monkeys in a mountain. Every one wants to be the monkey king. They keep arguing with each other about that f...
分类:
其他好文 时间:
2014-11-07 09:45:42
阅读次数:
252