0

所以,我正在做这个项目(http://www.leapfm.com/),我一直在收集反馈。有一点是:

1 个赞,发布了 5 天...位比它下面的链接更远离它所连接的链接。“James Blake - Retrograde” -> 1 个赞 -> 看起来可能属于“Paris - Magic Man”

但是我在解决这个问题时遇到了麻烦: 0; 潜台词类不起作用。

如何才能做到这一点?

代码片段(很确定它在这个元素上):

.subtext {
font-family: Verdana;
font-size: 7pt;
color: #828282;
padding: 0;
margin: 0;
}
4

2 回答 2

1

除此之外,您的 HTML 标记是严重错误的,例如,您不能在li标记中包含span标记。在http://validator.w3.org/check?uri=http%3A%2F%2Fwww.leapfm.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0查看您的网站。

如果它不是块对象,则无法添加margin和。如果您添加到您的标题中,它将更靠近您的标题,并且底部可以有更多。paddingspandisplay:block.subtextmargin

于 2013-08-04T17:53:59.547 回答
1

将以下代码添加到您的.subtext

position:relative;
top:-10px;

示例::小提琴

于 2013-08-04T17:56:08.147 回答