Maison > Questions et réponses > le corps du texte
是不是固定定位和绝对定位都会浮动起来不占位置。比如上例,用absolute和fixed。下面的文本都会挤上来,而relative 就占位置,所以他们不会挤上来
数据分析师2017-09-30 23:19:58
Problèmes de positionnement fixe et de positionnement absolu flottants ? - Questions et réponses sur le site Web chinois PHP - Problèmes de positionnement fixe et flottants de positionnement absolu ? - Questions et réponses sur le site Web chinois PHP
Jetez un œil et apprenez.
阿神2016-12-21 10:30:15
亲,可以这么理解。因为relative 虽然浮动起来了,但它以前的位置还是被占据着。而absolute和fixed都是浮动出来了,而且不占以前的位置。