一。内存分布1.默认generation分布2.parallel collector的generation 分布二。 内存划分1. Young Generation1 ) 生命周期很短的对象,归为young generation。由于生命周期很短,这部分对象在gc的时候,很大部分的对象已经成为非活动...
分类:
其他好文 时间:
2014-11-01 14:42:24
阅读次数:
172
圆角框固定宽度的圆角框两个图像:一个用于框的顶部,一个在底部。 Lorem Ipsum .box { width: 418px; background: #effce7 url(img/bottom.gif) no-repeat left bottom;}.box h2 { backg...
分类:
其他好文 时间:
2014-11-01 06:11:43
阅读次数:
189
每天一个JavaScript实例-点击图片显示大图添加鼠标操作
img{padding:5px;width:100px;height:auto;}
#outer{
width:100%;
height:100%;
}
.overlay{
background-color:#000;
opacity: .7;
filter:alpha(opacity=70);
po...
分类:
编程语言 时间:
2014-10-31 17:19:52
阅读次数:
152
1、对EditText的输入内容进行监听,给EditText 绑定 addTextChangedListener 监听事件 即可。
2、EditText输入内容,密文显示:
android:password="true"
3、将EditText边框设置成透明的:
android:background="#00000000"
4、修改EditTe...
分类:
其他好文 时间:
2014-10-31 15:49:04
阅读次数:
142
每天一个JavaScript实例-检测表单数据
[role="alert"]{
background-color: #fcc;
font-weight: bold;
padding:5px;
border:1px dashed #000;
}
div{
margin:10px 0;
padding:5px;
width:400px;
background-c...
分类:
编程语言 时间:
2014-10-31 15:48:28
阅读次数:
180
上中下布局是最基本的布局方式,本例假设用户屏幕分辨率为800*600像素。
上中下布局
body{
background: #42413C ;
margin: 0...
分类:
Web程序 时间:
2014-10-31 13:53:12
阅读次数:
418
1.针对IE浏览器.demo{ background-color:transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#26FFFFFF, endColorstr=#26FFFFFF)}2.针对FF...
分类:
其他好文 时间:
2014-10-31 13:26:35
阅读次数:
110
.NET提供struct类型,正确使用可以减少对象数量,从而降低GC压力,提高性能。不过有时候我会发现,某些同学有这方面的意识,但是有时候一疏忽一偷懒,就没有得到相应的效果了。这里举一个真实的例子:假设我们要将一对int作为字典的键,用于映射到某些数据,那么你会怎么做?当然我们可以直接使用Tup.....
分类:
其他好文 时间:
2014-10-31 11:39:24
阅读次数:
231
.ideal-btn{ padding:1px 28px 2px; line-height:31px; background-color: #2ecc71; border: 1px solid #2ecc71; /* color: #fff;*/ padding: ...
分类:
其他好文 时间:
2014-10-31 11:33:37
阅读次数:
240
Despite what a lot of people believe, it's easy to introduce memory and resources leaks in .NET applications. The Garbage Collector, or GC for close f...
分类:
移动开发 时间:
2014-10-31 09:53:06
阅读次数:
546