Css3可评估表达式? [英] Css3 evaluatable expressions?

查看:119
本文介绍了Css3可评估表达式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么技术允许css3语句中的表达式吗?

Are there any techniques that allow for expressions in css3 statements?

通常,执行 width:35% 20px 或类似。现在,我对这些情况的唯一解决方案是重新设计页面或使用javascript来动态设置CSS。

Frequently it is helpful to do such things as width: 35%+20px or similar. Right now the only solutions I have to these circumstances are to either redesign the page or to use javascript to dynamically set the css.

推荐答案

CSS和工作草案对值和单位指定 calc 函数,尽管只有在最新版本的IE和Firefox中支持

The CSS working draft on values and units specifies a calc function, though it is only supported in the latest versions of IE and Firefox.

这篇关于Css3可评估表达式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆