Css3可评估表达式?

编程入门 行业动态 更新时间:2024-10-24 04:37:20
本文介绍了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可评估表达式?

本文发布于:2023-11-29 23:19:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1647938.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表达式

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!