百度空间加入图片和滚动条

来源:百度知道 编辑:UC知道 时间:2024/07/02 08:58:49
在空间里怎么把各个模块加上自己喜欢的图片?
还有滚动条怎么编辑好看

应网友之请,将几个常用的插入图片的代码给大家,大家只需将相应代码添加到CSS中即可得到下面的效果。大家需要将代码中的网址,换为自己想插入图片的网址。由于图片大小不定,所以可能需要调整下面两个参数,以求和页面搭配和谐:

padding-bottom: 22px; margin-bottom: 6px; 改后面数字即可,padding-bottom为距上高度,margin-bottom为距下高度。

下面就是具体代码和其实现效果截图:

图片显示位置——个人档案照片下面:
#m_pro div.act{margin-top:5px; background:url(https://gss0.baidu.com/7LsWdDW5_xN3otqbppnN2DJv/1077/pic/item/0365c813bd3b2c23dc540120.jpg) no-repeat bottom; padding-bottom: 22px; margin-bottom: 6px; }no-repeat bottom; padding-bottom: 22px; margin-bottom: 6px; }

个人档案照片下面效果:

个人档案照片下面效果:

图片显示位置——文章列表1:
#m_blog div.tit{font-size:14px;font-weight:bold; background:url(https://gss0.baidu.com/7LsWdDW