所以,我正在从事这个元素 ( http://www.leapfm.com/ ),并且一直在收集反馈。一点是:
the 1 like, posted 5 days... bit is further away from the link it is connected to than the link below it. "James Blake - Retrograde" -> 1 like -> looks like it could belong to "Paris - Magic Man"
但我在修复放置 padding: 0 时遇到了问题;在潜台词类上不起作用。
如何做到这一点?
代码片段(很确定它在这个元素上):
.subtext {
font-family: Verdana;
font-size: 7pt;
color: #828282;
padding: 0;
margin: 0;
}
最佳答案
除此之外,您的 HTML 标记是非常错误的,例如,您不能在 span
标记中包含 li
标记。在 http://validator.w3.org/check?uri=http%3A%2F%2Fwww.leapfm.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0 查看您的网站.
如果 span
不是 block 对象,则不能添加 margin
和 padding
。
如果您将 display:block
添加到您的 .subtext
中,它将更靠近您的标题,并且可以在底部有更多的 margin
。
关于ruby-on-rails - Rails 中的 CSS 样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18045704/