标题背景 [英] Header Background

查看:65
本文介绍了标题背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我正在尝试创建一个带有背景颜色和填充的标题

的文本。

我知道如果我将背景颜色应用到标题中,它将会是* b $ b扩展100%。

所以我做了以下事情:


< h1>< span>标题< / span>< / h1>


h1 {}


h1 span {

背景颜色:#252525;

颜色:#D2D2D2;

字体:正常1.2em / 1.8 Verdana,日内瓦,sans- serif;

字母间距:0.1em;

填充:0.8em;

}


但是现在我无法应用顶部和底部边框。


我应该如何创建此标题?


谢谢,

Miguel

解决方案

" shapper" < md ***** @ gmail.com写信息

新闻:7e ************************* ********* @ a1g2000h sb.googlegroups.com ...


你好,


我我正在尝试创建一个带有背景颜色和填充的标题

的文本。

我知道如果我将背景颜色应用于标题,它将

扩大100%。

所以我做了以下工作:


< h1>< span> Header< / span>< / h1>


h1 {}

h1 span {

background-color:#252525;

颜色:#D2D2D2;

字体:正常1.2em / 1.8 Verdana,日内瓦,sans-serif;

字母间距:0.1em;

填充:0.8em;

}


但是现在我无法应用顶部和底部边框。


我应该如何创建此标题?



你的意思是什么?


我能够正确应用顶部和底部边框,完全使用你的

code ::

http:// nrkn .com / headerBackground /


5月20日凌晨1点40分,Nik Coughlin < nrkn .... @ gmail.comwrote:


" shapper" < mdmo ... @ gmail.com写信息


新闻:7e *********************** *********** @ a1g2000h sb.googlegroups.com ...


你好,


我正在尝试创建一个带有背景颜色和填充的标题

的文本。

我知道如果我申请背景颜色到标题它将b / b $ b $扩展100%。

所以我做了以下:


< h1>< span>标题< / span>< / h1>


h1 {}


h1 span {

背景颜色:#252525;

颜色:#D2D2D2;

字体:正常1.2em / 1.8 Verdana,日内瓦,sans-serif;

字母间距:0.1em;

填充:0.8em;

}


但是现在我无法应用顶部和底部边框。


我应该如何创建此标头?



你的意思是什么?


我能够正确应用顶部和底部边框,完全使用你的

code ::

http:// nrkn .com / headerBackground /



对不起,不是边框。顶部和底部填充。


文章

< 7e ***************** *****************@a1g2000hsb.g ooglegroups.com>,

shapper< md ***** @ gmail.comwrote:


我知道如果我将背景颜色应用于标题,它将会b / b
扩展100%。



你怎么知道看起来不对的东西?


-

dorayme


Hello,

I am trying to create a header with a background color and a padding
of the text.
I know that if I apply the background color to the header it will
expand 100%.
So I did the following:

<h1><span>Header</span></h1>

h1 {}

h1 span {
background-color: #252525;
color: #D2D2D2;
font: normal 1.2em/1.8 Verdana, Geneva, sans-serif;
letter-spacing: 0.1em;
padding: 0.8em;
}

But now I am not able to apply the top and bottom border.

How should I created this header?

Thanks,
Miguel

解决方案

"shapper" <md*****@gmail.comwrote in message
news:7e**********************************@a1g2000h sb.googlegroups.com...

Hello,

I am trying to create a header with a background color and a padding
of the text.
I know that if I apply the background color to the header it will
expand 100%.
So I did the following:

<h1><span>Header</span></h1>

h1 {}

h1 span {
background-color: #252525;
color: #D2D2D2;
font: normal 1.2em/1.8 Verdana, Geneva, sans-serif;
letter-spacing: 0.1em;
padding: 0.8em;
}

But now I am not able to apply the top and bottom border.

How should I created this header?

What do you mean?

I was able to apply a top and bottom border just fine, using exactly your
code::

http://nrkn.com/headerBackground/


On May 20, 1:40 am, "Nik Coughlin" <nrkn....@gmail.comwrote:

"shapper" <mdmo...@gmail.comwrote in message

news:7e**********************************@a1g2000h sb.googlegroups.com...

Hello,

I am trying to create a header with a background color and a padding
of the text.
I know that if I apply the background color to the header it will
expand 100%.
So I did the following:

<h1><span>Header</span></h1>

h1 {}

h1 span {
background-color: #252525;
color: #D2D2D2;
font: normal 1.2em/1.8 Verdana, Geneva, sans-serif;
letter-spacing: 0.1em;
padding: 0.8em;
}

But now I am not able to apply the top and bottom border.

How should I created this header?


What do you mean?

I was able to apply a top and bottom border just fine, using exactly your
code::

http://nrkn.com/headerBackground/

Sorry, not border. Top and Bottom padding.


In article
<7e**********************************@a1g2000hsb.g ooglegroups.com>,
shapper <md*****@gmail.comwrote:

I know that if I apply the background color to the header it will
expand 100%.

How do you know things that look false?

--
dorayme


这篇关于标题背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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