内在的工作如何? [英] How does intrinsic work?

查看:105
本文介绍了内在的工作如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从来没有听说过内在的值,直到我遇到 页面。



根据我所知道内在意味着自然。那么如何在CSS中工作。我认为 auto 本来就是自然



它不同于 auto



我看到的示例是 max-width:intrinsic;

$ c> c>

$ b>

$ b>
$ b

http://dev.w3.org/csswg/css



我尚未使用它,但参考资料可能会提供更多资讯。



基于快速查看,此模块将更容易指定内容如何填充父级包含块的宽度和高度。



JavaScript函数通常用于基于变量子元素内容的%值计算容器块的宽度和高度。


I have never heard of this intrinsic value before until I come across this page on MDN.

From what I know intrinsic means natural. So how does this work out in CSS. I thought that auto would have been natural. I've searched around a bit but can't find anything on it.

What does it do different than auto?

The example I saw was max-width: intrinsic;

解决方案

It looks like the intrinsic value is part of the newer CSS3 sizing module:

http://dev.w3.org/csswg/css-sizing/

I have not used it yet but perhaps the reference will provide you with more information.

Based on a quick review, this module would make it easier to specify how content fills the width and height of a parent containing block.

At the moment, JavaScript functions are often used to compute widths and heights of container blocks based on % values for variable child elements content.

这篇关于内在的工作如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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