css3 - css transform是不是不会改变原来元素在文档中的位置和大小?
天蓬老师
天蓬老师 2017-04-17 11:09:21
0
2
559

是不是变换后就相当于在原来的位置挖了一个坑,原来该元素的布局都是保留下来的,我也不知道该怎么形容,就是transform变换前后都不会影响原来其他元素的布局? 它是不是相当于position:absolute;使元素从原来的文档流脱出,只是这个是相对于它本身的absolute,并且把z-index提生到最高?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
迷茫

Transform is a rendering done by the browser on existing elements. It will not change the position or size. The implementation principle is definitely not position or z-index, it is an independent function

阿神

Transform is equivalent to relative, although it is moved or enlarged or reduced. Its position in the document flow remains unchanged and does not affect the layout.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template