Bootstrap - Removing padding or margin when screen size is smaller

后端 未结 12 1282
深忆病人
深忆病人 2020-12-07 18:31

EDITED: Maybe I should ask which selector sets up the side padding when the screen is reduced to below 480px width? I have been browsing bootstrap-responsi

12条回答
  •  一整个雨季
    2020-12-07 18:51

    Another css that can make the margin problem is that you have direction:someValue in your css, so just remove it by setting it to initial.

    For example:

    body {
         direction:rtl;
     }
    @media (max-width: 480px) {
        body {
         direction:initial;
        }
    }
    

提交回复
热议问题