Maison  >  Questions et réponses  >  le corps du texte

固定定位和绝对定位浮动问题?

是不是固定定位和绝对定位都会浮动起来不占位置。比如上例,用absolute和fixed。下面的文本都会挤上来,而relative 就占位置,所以他们不会挤上来

phpcn_u224phpcn_u2242859 Il y a quelques jours925

répondre à tous(2)je répondrai

  • 数据分析师

    数据分析师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.

    répondre
    0
  • 阿神

    阿神2016-12-21 10:30:15

    亲,可以这么理解。因为relative 虽然浮动起来了,但它以前的位置还是被占据着。而absolute和fixed都是浮动出来了,而且不占以前的位置。

    répondre
    0
  • Annulerrépondre