body{background-color:#000\9;}/*ie*/body{background-color:#0f0\9\0;}/*ie9及以上*/body{background-color:#00f\0;}/*ie8及以上*/body{background-color:#f00\0/;}/...
分类:
Web程序 时间:
2014-08-21 11:05:13
阅读次数:
178
定义元素背景设置background-size属性cover自适应填充背景,background-size: 100% 100%;background-size: 左右比例 上下比例;再介绍几个特殊属性:background-clip :background-origin :backgrou...
分类:
Web程序 时间:
2014-08-20 16:00:12
阅读次数:
213
http://gundumw100.iteye.com/blog/1146527上面这种3选1的效果如何做呢?用代码写?其实有更简单的办法,忘了RadioButton有什么特性了吗?我就用RadioButton实现了如上效果,其实很简单的。首先定义一张background,命名为radio.xml,...
分类:
移动开发 时间:
2014-08-20 10:26:56
阅读次数:
244
一、ImageView中XML属性src和background的区别:
background会根据ImageView组件给定的长宽进行拉伸,而src就存放的是原图的大小,不会进行拉伸。src是图片内容(前景),bg是背景,可以同时使用。
此外:scaleType只对src起作用;bg可设置透明度,比如在ImageButton中就可以用android:scaleType控制图...
分类:
移动开发 时间:
2014-08-19 19:02:55
阅读次数:
210
jcarousel jcarousel-skin-ie7.jcarousel-skin-tango .jcarousel-container { -moz-border-radius: 10px; background: #F0F6F9; /*border: 1px solid #...
分类:
Web程序 时间:
2014-08-19 18:59:55
阅读次数:
203
html: css:.posterTvGrid{position:relative;height:280px;}.posterTvGrid img{max-width:none;max-height:none;border:0 none;background:#888;}.posterTvGrid....
分类:
其他好文 时间:
2014-08-19 18:37:15
阅读次数:
270
//样式.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
使用 replaceWith 替換節點后,在原來節點上的事件都會被去除。所以,如果要保留節點上的事件,可以只替換節點內的內容達到目的!不替換已經綁定事件的節點。.read_box { height:480px; background:#141414; position:absolute; z-ind...
分类:
Web程序 时间:
2014-08-19 16:08:34
阅读次数:
231
IE6、IE7、IE8、Firefox兼容性CSS HACK代码+示例整理关于IE6、IE7、IE8、Firefox兼容性CSS HACK问题1.区别IE和非IE浏览器CSS HACK代码 #divcss5{background:blue; /*非IE 背景藍色*/(音乐按摩椅)background...
分类:
Web程序 时间:
2014-08-19 15:56:44
阅读次数:
168