开发者

uibinder css literal Hide options

开发者 https://www.devze.com 2023-01-18 16:33 出处:网络
Inside my CSS, I put: .someClass { width: literal(\"expression(this.width > 40 ? 40: true)\"); } Is this correct syntax? I tried, but no result output when I debug w开发者_运维问答ith Firebug on

Inside my CSS, I put:

.someClass {
  width: literal("expression(this.width > 40 ? 40: true)");
}

Is this correct syntax? I tried, but no result output when I debug w开发者_运维问答ith Firebug on Firefox. I'm trying to make max-width work in IE6.


This may be helpful for achieving max-width with ie6: http://www.svendtofte.com/code/max_width_in_ie/


this may be a case for doing this outside of the CSS, in JavaScript. Or if you're doing a lot of DOM manipulation then maybe consider using jQuery.

0

精彩评论

暂无评论...
验证码 换一张
取 消