Posts Tagged ‘css expression’

1 06 2009

解决
标签里的文本换行(兼容IE, FF和Opera等)

bigCat Posted in CSS, JavaScript - 0 Comment

pre {
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}

出自: Making preformated text wrap in CSS3, Mozilla, Opera and IE

27 05 2009

css expression

bigCat Posted in CSS, JavaScript - 0 Comment

button{
zoom:expression(
this.style.zoom=1,
onmouseover=function(){
this.className=this.className+'_hover';
},
onmouseout=function(){
this.className=this.className.replace('_hover','');
}
);
}

Host: (miao) | Word: Press | Code: bigCat | Valid: HTML5