E::selection选择器:E::selection{background:#FF6600;color:#fff;}//当文字被选中时,背景是红色,文字是白色E::-moz-selection{background:#FF6600;color:#fff;}//为了让火狐浏览器支持*IE6/7/8...
分类:
其他好文 时间:
2014-08-08 15:19:16
阅读次数:
185
transitions:property duration timing-function;transitionst他有三个参数:1)property:属性设置,例如background,color等。2)duration:执行时间, 例如1s, 0.5s等。3)timing-function:动画...
分类:
Web程序 时间:
2014-08-08 15:15:46
阅读次数:
267
属性选择器的用法 格式:[属性/^/*/$=值]1、【attr=val】 匹配指定值的元素1 2 3 完全匹配元素4 5 HTML代码1 [id=section1]2 {3 background: #eee;4 font-...
分类:
Web程序 时间:
2014-08-08 15:12:56
阅读次数:
201
Description
Background
Jim is a brave explorer. One day, he set out for his next destination, a mysterious hill. When he arrived at the foot of the hill, he was told that there were a bunch of mons...
分类:
其他好文 时间:
2014-08-08 12:52:35
阅读次数:
314
transition是将某个属性从一个属性值在指定的时间内平滑过渡到另一个属性值来实现动画效果.这个属性一般搭配:hover来使下面看一个例子:鼠标放在div上,0.2s后将div元素的背景色用一秒的时间变成黄色,变化方式是linear1 div{ background-color:red; tra...
分类:
Web程序 时间:
2014-08-08 12:04:05
阅读次数:
224
<!DOCTYPE?html> <html> <head> <meta?charset= "utf-8" /> <title></title> <meta?content= "?"? />? <meta?content= "?"? /> <style> #c{width:500px;height:300px;overflow:hidden;background:#ccc;}...
分类:
Web程序 时间:
2014-08-08 02:14:25
阅读次数:
267
1. 背景色:
listView设置背景色android:background="@drawable/bg",拖动或者点击list空白位置的时候发现ListItem都变成黑色。 因为默认的ListItem背景是透明的,而ListView的背景是固定不变的,所以在滚动条滚动的过程中如果实时地去将当前每个Item的显示内容跟背景进行混合运算,所以android系统为了优化这个过程用,就使用了一个...
分类:
其他好文 时间:
2014-08-07 19:11:11
阅读次数:
200
abc.cssCSS code.class1 { width:10px; background-color: red; }HTML code New Document aaa(2) New Document aaa还可以用 document.styleSheets(i).href 可以知道当...
分类:
编程语言 时间:
2014-08-07 18:39:50
阅读次数:
334
div:1、基本属性:width, height, left, top, background-color(当设置为transparent时表示透明)2、定位属性:position: absolute/relativeabsolute时,位置固定;relative时,位置会随着内容的实际情况进行浮动...
分类:
其他好文 时间:
2014-08-07 12:45:40
阅读次数:
213
java中提供了垃圾回收器(简称gc),对于不再使用的内存能自动将其释放。那gc是怎么工作的呢?
居然要垃圾回收,那么就要定位什么是“垃圾”。在JAVA里面认为对任何“活”的对象,都能追溯到其在堆栈区或静态存储区的引用,简称“活对象”,简单点来说就是有对象引用指向它。那么怎么找出所有的“活对象”呢?就是从堆栈和静态存储区出发遍历所有的对象引用,定位引用指向的对象,该对象中包含的所有对...
分类:
编程语言 时间:
2014-08-07 09:50:19
阅读次数:
290