如何删除h1标签行之间的背景颜色? [英] How to remove background color between lines on h1 tag?

查看:194
本文介绍了如何删除h1标签行之间的背景颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以这里是图片我需要它看 -
http://desmond.imageshack.us/Himg339/scaled.php?server=339&filename=capture2dn.jpg&res=medium
这里是图片,我目前有 -
http://desmond.imageshack.us/Himg526/scaled.php?server=526&filename=capturegdq.jpg&res=medium
从根本上讲,我需要删除背景:色标;之间的线。有什么我可以做,所以它会删除线之间h1的背景颜色?

so here is the picture how I need it to look - http://desmond.imageshack.us/Himg339/scaled.php?server=339&filename=capture2dn.jpg&res=medium And here is the picture, how I currently have - http://desmond.imageshack.us/Himg526/scaled.php?server=526&filename=capturegdq.jpg&res=medium Well bascially, I need to remove the background: color-code; between the lines. Is there anything I could do, so it would remove the background color for h1 between lines?

推荐答案

​<h1>
<span>test test test test test test test test test test test test test test test test test test test test test test test test test test test test </span>
​</h1>​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

​h1{
    width:200px;
}
h1 span
{
    background-color:red;
}
​

http://jsfiddle.net/Mcd9F/

使用 line-height 会增加差距:

http://jsfiddle.net/Mcd9F/1/

这篇关于如何删除h1标签行之间的背景颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆