本文介绍了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可评估表达式?
发布评论