或高度的百分比值

或高度的百分比值

本文介绍了CSS3转换是否转换相对于其宽度和/或高度的百分比值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我认为的确是这样,当我们使用百分比值进行CSS3转换翻译时,该百分比相对于自己的宽度或高度,因此(50%,75%)表示50占其自身宽度的百分比,占其自身高度的75%,但我找不到任何说明这一点的规范。I think it is true that when we do a CSS3 transform translate using a percentage value, then that percentage is relative to its own width or height, so (50%, 75%) means 50% of its own width, 75% of its own height, but I can't find any specs that say that.示例: https://jsfiddle.net/cstsyw3s / 1 / 使用:Example: https://jsfiddle.net/cstsyw3s/1/using:transform: translate(100%, 100%)我调查了 http://www.w3.org/TR/css3-transforms ,但找不到在那里提到的内容-我只能找到 transform-origin ,即百分比:指边界框的大小,我认为边界框可能是带有元素的宽度和高度的矩形。 (不包括任何边框)...但是除了SVG和表格之外,我都找不到边框的定义。I looked into http://www.w3.org/TR/css3-transforms but can't find it mentioned there -- I could only find such as for transform-origin, the "percentages: refer to the size of bounding box", and I think the bounding box probably is rectangle with the element's width and height. (not including any border)... but I can't find a definition for bounding box except for SVG and table either.推荐答案在此部分 http://www.w3.org/TR/css3 -transforms /#transform-property 它指出:边界框的定义是(源)边框是(源)我希望这会有所帮助 这篇关于CSS3转换是否转换相对于其宽度和/或高度的百分比值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-03 00:13