2016-03-24 50 views
-1

我有一个div。我已经加入了风格overflow: auto到div - 这使它看起来像this在滚动条下显示填充

我的问题是:我怎么下的内容增加空间 - 像this(你可以看到,有文字下方的空间 - 我做了这个用油漆

我的代码是:

<div class="background" style="overflow: auto;"> 
<h2>ABOUT</h2> 
<p>And welcome to my profile! This is an example And welcome to my profile! This is an example And welcome to my profile! This is an example And welcome to my profile! This is an example And welcome to my profile! This is an example And welcome to my profile! This is an example And welcome to my profile! This is an example And welcome to my profile! This is an exampleAnd welcome to my profile! This is an exampleAnd welcome to my profile! This is an example And welcome to my profile! This is an example And welcome to my profile! This is an example And welcome to my profile! This is an example And welcome to my profile! This is an example And welcome to my profile! This is an example And welcome to my profile! This is an example And welcome to my profile! This is an exampleAnd welcome to my profile! This is an example</p> 
</div> 
+0

逆转您的状况。 –

+0

这里有人?????? –

+0

hello ??????????????????????????????????????? –

回答

3

你需要检查是否返回行,所以如果行是> 0,只需更改

if (mysqli_num_rows($pendingrequests)==0) { 

if (mysqli_num_rows($pendingrequests) > 0) { 
+0

@Fabio好的答案 –

+0

欢迎您的家伙 – Fabio

+0

@MuhammadArif谢谢队友 – Fabio