84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
h5页面,图片有白边。dislay block无效果
欢迎选择我的课程,让我们一起见证您的进步~~
Check to see if the white edges were cut off when you cut the picture;
Check whether the image has no limited width and exceeds the container;
Is it the margins (inside and outside) set by the image or the margins set by the container?
Add a line below the picture to clear the floating layer and tryclear: both,同理给图片的父级容器写个最小高度试试min-height=10px;
clear: both
min-height=10px
The question you asked is too abstract. It’s best to take a screenshot and attach the code next time. It’s too tiring to answer this question.
Have you set the width? Or is the white border that appears a scroll bar?
Padding set?
Are you saying there will be empty extra space at the bottom of the picture? Generally speaking display:block可以解决,不过你也可以试一下vertical-align:bottom. By the way, your way of asking the question is really bad and confusing.
display:block
vertical-align:bottom
Check to see if the white edges were cut off when you cut the picture;
Check whether the image has no limited width and exceeds the container;
Is it the margins (inside and outside) set by the image or the margins set by the container?
Add a line below the picture to clear the floating layer and try
clear: both
,同理给图片的父级容器写个最小高度试试min-height=10px
;The question you asked is too abstract. It’s best to take a screenshot and attach the code next time. It’s too tiring to answer this question.
Have you set the width? Or is the white border that appears a scroll bar?
Padding set?
Are you saying there will be empty extra space at the bottom of the picture? Generally speaking
display:block
可以解决,不过你也可以试一下vertical-align:bottom
. By the way, your way of asking the question is really bad and confusing.