[英]How to remove background color between lines on h1 tag?
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; 所以这是我需要的图片-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基本上 ,我需要删除背景:color-code; between the lines. 线之间。 Is there anything I could do, so it would remove the background color for h1 between lines? 有什么我可以做的,所以它将删除行之间的h1的背景色?
<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/ http://jsfiddle.net/Mcd9F/
Using line-height
will increase the gap: 使用line-height
会增加间隙:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.