术语:“动态宽度”的含义,有共识? [英] Terminology: Does the meaning of "dynamic width" have a consensus?

查看:92
本文介绍了术语:“动态宽度”的含义,有共识?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我不知道这个问题在另一个SE网站上可能更适合



b b b b b b p>从我的回答中跳出中心固定div的动态宽度( CSS),我观察到评论中,由于动态与有一种误解。



针对此术语有关SO的5个问题。在<90>我审查了这种误解似乎发生了。



似乎很明显,动态宽度适应性宽度,但至少有2种可能的情况:


  1. 元素适应其父宽度元素适应其内容大小(即 display:inline-block
  2. code>)



问题



解决方案

否,没有。

没有任何正式定义术语的来源或引用,因此这两种情况都适用。为避免误解,请在问题或声明的上下文中解释(如果是指父项或内容)。


First of all, I don't know if this question may fit better on another SE site. Please flag if you think it should be migrated.


Background

Leading from my answer at Center fixed div with dynamic width (CSS), I observe on comments that there is a kind of misunderstanding due to the term dynamic with.

There are also over 5k questions on SO regarding this term. On the 90% I reviewed this misunderstanding seems to happen to.

It seems clear for everybody that "dynamic width" refers to adaptable width, but there are at least 2 possible cases:

  1. The element adapts to it's parent width (i.e, width: 90%)
  2. The element adapts to it's content size (i.e., display: inline-block)

The question

There is a consensus at the community for the meaning of dynamic width?

解决方案

No, there isn't.

There isn't any source or reference that formally defines the term, thus both cases apply. To avoid misunderstanding, explain on the context of a question or assertion if it refers to the parent or the content.

这篇关于术语:“动态宽度”的含义,有共识?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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