平常总是使用background的缩写形式,忽视了各属性的细节在此进行总结。background-attachmentW3C:属性设置背景图像是否固定或者随着页面的其余部分滚动。属性值:scroll 默认值。背景图像会随着页面其余部分的滚动而移动。fixed 当页面的其余部分滚动时,背景图像不会.....
分类:
Web程序 时间:
2014-10-22 21:39:39
阅读次数:
332
Java GC日志可以通过 +PrintGCDetails开启以ParallelGC为例YoungGC日志解释如下(图片源地址:这里) :FullGC(图片源地址:这里):http://blog.csdn.net/alivetime/article/details/6895537
分类:
编程语言 时间:
2014-10-22 17:20:41
阅读次数:
182
JVM GC 垃圾回收器类型小结
JVM的垃圾回收器大致分为四种类型:
1、串行垃圾回收器
2、并行垃圾回收器
3、并发标记扫描垃圾回收器
4、G1垃圾回收器
1、串行垃圾回收器
串行垃圾回收器在进行垃圾回收时,它会持有所有应用程序的线程,冻结所有应用程序线程,使用单个垃圾回收线程来进行垃圾回收工作。
串行垃圾回收器是为单线程环境而设计的,如果你的程序不需要多线程,启动串行...
分类:
编程语言 时间:
2014-10-22 14:34:15
阅读次数:
291
页面的视差有多种表现形式,最常见的是用户滚动页面形成的视差效果。今天的教程是一个插件,实现多种不同的视差效果。? 这个插件叫做Interactive BG (Background),让你创建一个页面背景相对于光标移动而移动的视差效果。由于在移动端没有鼠标移动事件,所以这个插件利用加速计,而不是为io...
分类:
移动开发 时间:
2014-10-22 12:45:04
阅读次数:
175
//css//body , html{ margin:0; padding:0; font:12px Arial, Helvetica, sans-serif; }.MusicBox { background-color: #212121; background-image: -webkit-gr....
分类:
Web程序 时间:
2014-10-22 12:25:21
阅读次数:
356
http://www.blogjava.net/heavensay/archive/2012/11/07/389685.html a=null;12clazzA=null;13loader=null;14//执行一次gc垃圾回收15System.gc();
分类:
其他好文 时间:
2014-10-22 06:14:27
阅读次数:
126
堆快照 -Xmx10M -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=C:\m.hprof 在系统发生错误时,运行第三方脚本 -XX:OnOutOfMemoryError=c:\reset.bat 获取GC信息 简要: -verbose:gc -XX:+PrintGC 详细: -X...
分类:
其他好文 时间:
2014-10-22 01:09:59
阅读次数:
186
自适应布局(四种写法,三种方案) 1、使用position:absolute. <!doctype html> <html> <head> <style> body{ width: 100%; padding: 0; margin: 0; } div{ height: 500px; } .div1{ width: 100px; background: re...
分类:
其他好文 时间:
2014-10-21 23:22:51
阅读次数:
492
eq() 方法将匹配元素集缩减值指定 index 上的一个。
通过为 index 为 2 的 div 添加适当的类,将其变为蓝色:
div { width:60px; height:60px; margin:10px; float:left;
border:2px solid blue; }
.blue { background:blue; }
...
分类:
Web程序 时间:
2014-10-21 21:36:56
阅读次数:
241
一、效果图按钮可以多次点击。二、HTML+CSS代码。<style>.box{width:800px;margin:90pxauto;}.btn{padding:5px10px;color:#fff;background:#ff6600;cursor:pointer;font-size:16px;border-radius:5px;}.list{position:relative;margin-top:20px;}.listli{width:48px;heig..
分类:
Web程序 时间:
2014-10-21 19:58:42
阅读次数:
823