为什么将元素设置为内联块状元素背景会变大?这个和浏览器设置有没有关系?
看透不说透
看透不说透 2016-12-26 15:36:36
0
2
1123
看透不说透
看透不说透

reply all(2)
数据分析师

Why does the background of a block element become larger when it is set to inline? Does this have anything to do with browser settings? -PHP Chinese website Q&A-Why does the background of an element become larger when it is set as an inline block element? Does this have anything to do with browser settings? -PHP Chinese website Q&A

Please watch and learn.

迷茫

a在开始的时候是内联元素,内联元素不可以设置宽和高。将元素设置为内联块状元素之后,可以设置宽和高了,之前设置的宽和高的值起作用了,所以背景变大了。

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!