CSS

[CSS]親要素はみ出して画面いっぱいに表示

投稿日:

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;

内側を親に合わせる

  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);

-CSS

Copyright© WXY , 2024 All Rights Reserved Powered by STINGER.