+ -
当前位置:首页 → 问答吧 → 两个栏目同样的列表数却对不齐,该怎么办?

两个栏目同样的列表数却对不齐,该怎么办?

时间:2011-05-13

来源:互联网

好像是左边列表的行与行之间的间距比右边的小,但是我不知道怎么调
下面是css代码:
.rightc h2 span a, .leftc h2 span a, #sidebar h2 span a { color:#fff; }
.rightc h2 span a:hover, .leftc h2 span a:hover, #sidebar h2 span a:hover { color:#fff; text-decoration:none; }
.rightc ul { width:420px; border:1px solid #e3e3e3; margin-bottom:8px; padding:6px 10px; background:#fff; }
.rightc ul li { height:26px; line-height:26px; padding-left:10px; background:url(li_arrow.png) no-repeat left center; text-align:right; }
.rightc ul li span { font-size:11px; color:#999; }
.leftc ul, #sidebar ul { margin:0 0 8px; }
.box { width:228px; border:1px solid #e3e3e3; margin:8px 0; padding:6px 10px; background:#fff; }
.box li { height:26px; line-height:26px; padding-left:10px; background:url(li_arrow.png) no-repeat 0 9px; overflow:hidden; }


box和leftc都是左侧的,rightc是右侧的,求大虾帮忙解决一下,在线等。


页面是这个:http://zscgreat.gotoip4.com/
推荐签名和个性签名这两个栏目

作者: zscgreat   发布时间: 2011-05-13

有没有大虾懂这个的,小弟等很急啊!!!!!!

作者: zscgreat   发布时间: 2011-05-13

你这样试试:
.rightc UL LI {
TEXT-ALIGN: right; --(改为)--->left
}

.rightc UL LI A {
  float:left; ---------这个去掉
}

作者: yanguiqingcheng   发布时间: 2011-05-13

你之前那样其实在IE8,IE9、FF里是对齐的,应该就是IE6、IE7不行。。。

作者: yanguiqingcheng   发布时间: 2011-05-13