因为浏览器的兼容问题,不同浏览器对有些标签的默认值是不同的,如果没对CSS初始化往往会出现浏览器之间的页面显示差异。
当然,初始化样式会对SEO有一定的影响,但鱼和熊掌不可兼得,但力求影响最小的情况下初始化。
*最简单的初始化方法就是(不建议):
1 |
|
淘宝的样式初始化:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
因为浏览器的兼容问题,不同浏览器对有些标签的默认值是不同的,如果没对CSS初始化往往会出现浏览器之间的页面显示差异。
当然,初始化样式会对SEO有一定的影响,但鱼和熊掌不可兼得,但力求影响最小的情况下初始化。
*最简单的初始化方法就是(不建议):
1 |
|
淘宝的样式初始化:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
转载于:https://my.oschina.net/u/3652781/blog/1535126