java - 手机页面有白边
天蓬老师
天蓬老师 2017-04-18 09:51:33
0
4
856

h5页面,图片有白边。dislay block无效果

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(4)
Ty80
  1. Check to see if the white edges were cut off when you cut the picture;

  2. Check whether the image has no limited width and exceeds the container;

  3. Is it the margins (inside and outside) set by the image or the margins set by the container?

  4. Add a line below the picture to clear the floating layer and tryclear: 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?

PHPzhong

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.

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!