以下是引用片段: word-wrap:break-word;overflow:hidden; 而不是以下是引用片段: word-wrap:break-word;word-break:break-all; 也不是以下是引用片段: word-wrap:break-word;overflow:a...
分类:
Web程序 时间:
2014-08-21 18:45:04
阅读次数:
253
p { overflow: hidden; white-space: normal; height: 3em; text-overflow:ellipsis; }除了css属性,通过js实现(通过从后向前逐个删除末尾字符,直至元素的高度小于父元素高度)$(".figcaption").each(fu...
分类:
其他好文 时间:
2014-08-21 16:45:34
阅读次数:
183
类的成员分为两类,静态成员(static member)和实例成员(instance member)。静态成员属于类,实例成员则属于对象,即类的实例。 简单讨论一下在一个类中使用静态字段(static field)和静态方法(static method)是否会有线程安全问题。 我们在知道, 静态字....
分类:
编程语言 时间:
2014-08-20 17:56:52
阅读次数:
219
1、form加入HTML属性 {:method=>"post", :id=>"form1", :name=>"form1", :target=>"__hidden_call"}) do |f| %> { :action => "update" } %>2、link_to "issue", :acti...
分类:
其他好文 时间:
2014-08-19 18:54:35
阅读次数:
198
//样式.sfbMaqtitle{width:960px;height:36px;background:#ff8500;padding:7px 0;font-size:18px;overflow:hidden;}.sfbMaqtitle li{cursor:pointer;display:inlin...
分类:
其他好文 时间:
2014-08-19 18:24:05
阅读次数:
191
先来解释一下啥是事件委托:
事件委托就是:子元素的事件,委托给他的父级
先来个例子看看:
无标题文档
*{margin:0; padding:0}
ul,li{ list-style:none;}
#ul{ overflow:hidden;}
li{width:100px; height:100px; background:red; margin:20px; fl...
分类:
其他好文 时间:
2014-08-19 16:31:14
阅读次数:
196
使用after伪类清除浮动.department li:after{content:".";height:0;visibility:hidden;display:block;clear:both;}
分类:
其他好文 时间:
2014-08-19 16:00:04
阅读次数:
212
一.对象 从事开发工作的都知道,面向对象的概念是为了更好用程序语言解决现实问题二提出的。 在Powershell中,对象是值我们收集信息或者执行操作的行为。包括属性和方法。Powershell中的一切皆为对象。我们所有的操作都是对对象的操作。二.Get-Member Get-Member可以现实.....
分类:
其他好文 时间:
2014-08-19 12:41:54
阅读次数:
232
相当于VC6里的.dsw和.dsp.Net解决方案下 .sln文件和.suo文件的解释:When a Web site is created, a solution file (.sln) and a hidden solution user options file (.suo) are crea...
分类:
其他好文 时间:
2014-08-19 09:21:33
阅读次数:
170
.triangle {width: 10px;height: 10px;overflow: hidden;border-left: 4px solid rgba(0, 224, 255, 1);border-right: 4px solid rgb(0, 255, 10);border-top: 4...
分类:
Web程序 时间:
2014-08-18 16:10:32
阅读次数:
195