/* 标签页菜单 */div.bs-docs-example { position: relative; width: 600px; margin: 15px auto; padding: 39px 19px 14px; background-color: white; border: 1px so...
分类:
其他好文 时间:
2014-08-24 19:22:32
阅读次数:
305
/* 表单2 */ form.bs-docs-example { position: relative; width: 600px; margin: 15px auto; padding: 39px 19px 14px; background-color: white; border: 1px so...
分类:
其他好文 时间:
2014-08-24 14:10:32
阅读次数:
334
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, ...
分类:
其他好文 时间:
2014-08-24 11:32:02
阅读次数:
164
在开发中很容易遇到div中文字超出的问题,在此总结以下方法: white-space 属性设置如何处理元素内的空白。这个属性声明建立布局过程中如何处理元素中的空白符。所有浏览器都支持 white-space 属性。 注释:任何的版本的 Internet Explorer (包括 IE8)都不支持属....
分类:
其他好文 时间:
2014-08-22 10:36:45
阅读次数:
226
p { overflow: hidden; white-space: normal; height: 3em; text-overflow:ellipsis; }除了css属性,通过js实现(通过从后向前逐个删除末尾字符,直至元素的高度小于父元素高度)$(".figcaption").each(fu...
分类:
其他好文 时间:
2014-08-21 16:45:34
阅读次数:
183
Problem DescriptionThere are a bunch of stones on the beach; Stone color is white or black. Little Sheep has a magic brush, she can change the color o...
分类:
其他好文 时间:
2014-08-20 12:11:22
阅读次数:
209
指针数组 && 数组指针
char (*ptr)[5]; //定义一个指向数组指针ptr,指向包含5个char类型的数组
char *a[5]; //定义一个指针数组a,包含5个char*类型指针
#include
int main(void)
{
char *a[5]={"red","white","blue","dark","green"};
pri...
分类:
编程语言 时间:
2014-08-19 12:55:44
阅读次数:
230
自动换行问题,正常字符的换行是比较合理的,而连续的数字和英文字符常常将容器撑大,挺让人头疼,下面介绍的是CSS如何实现换行的方法 对于div,p等块级元素 正常文字的换行(亚洲文字和非亚洲文字)元素拥有默认的white-space:normal,当定义的宽度之后自动换行html正常文字的换行(亚洲文...
分类:
Web程序 时间:
2014-08-18 22:01:52
阅读次数:
216
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.
Return all such possible sentences....
分类:
其他好文 时间:
2014-08-18 20:36:22
阅读次数:
231
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.
Here, we will use the integers ...
分类:
其他好文 时间:
2014-08-16 12:35:30
阅读次数:
233