Extra padding on Chrome/Safari/Webkit — any ideas?

前端 未结 9 2211
广开言路
广开言路 2021-02-07 05:35

My page has this extra padding on the top of page that I\'m unable to remove. Tried everything under the sun and hope someone can show me the way.

Any ideas?

9条回答
  •  清酒与你
    2021-02-07 06:18

    This works with IE (at least IE v10 in my tests):

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    

    The bottom one is the one that works for IE 10, just keeps all the dimensions to what you set a selector/element to be in the width and/or height.

提交回复
热议问题