在我的html文件中,我使用了SpryTabbledPanels插件。在那里有三个div标签。 在一个div标签中,我的数据更少,另一个div标签我的数据更多。我为此使用了悬停。当我悬停在第一个div标签上时,它显示数据。但底部有很多空白空间,另一个div标签没有太多空间。 那么请问我可以在div标签中更改背景图片的高度吗?如何减少div标签中的背景图片?
以下为背景图片的CSS:
#main-content {
/*margin:0px 225px;*/
margin-left:auto;
margin-right:auto;
margin-top:35px;
width:900px;
/*width:100%;*/
height:auto;
/*height:1053px;*/
/*background: -moz-linear-gradient(top, #fff , #ccc);
background: -webkit-gradient(linear, left top, left bottom, (#E5E5E5) to(#ccc));
background: filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff', EndColorStr='#000000.');*/
border-top-left-radius:48px;
border-top-right-radius:48px;
border-bottom-left-radius:48px;
border-bottom-right-radius:48px;
padding-bottom:20px;
min-height:1450px;
background:url(res/back-img.png) repeat;
}
以下是截图:
检查此主题http://stackoverflow.com/questions/1341358 – 2013-03-28 11:17:27