Unwanted padding-bottom of a div

后端 未结 3 1625
滥情空心
滥情空心 2020-12-24 14:53

Here is my html:



3条回答
  •  萌比男神i
    2020-12-24 15:03

    It's entirely possible that what you think is bottom padding on the div is actually caused by another style rule - for example, padding on the body element, which is possible if you enable/disable browser quirks mode (playing with the DOCTYPE tends to have that effect).

    If that is the case, it should be possible to override the default styling with a custom style rule.

    Firebug can be a great help here as it shows which CSS styles affect which DOM element.

提交回复
热议问题