-webkit-margin adds unwanted margin on texts

前端 未结 12 1751
不思量自难忘°
不思量自难忘° 2020-11-29 02:32

This hadn\'t hit me until now (and this is not only in webkit browsers). On all texts in like p tags, h1 tags etc... there\'s an extra space over a

12条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-29 02:52

    I had the same issue. Displaying correctly in Firefox but not Chrome.

    I had a closer look at http://meyerweb.com/eric/tools/css/reset/ and found that I hadn't declared a general line-height for the body tag in my stylesheet. Set it to 1.2 and that recreated the correct layout in both browsers.

提交回复
热议问题