每當我嘗試更改段落的不透明度時,它會更改文本和背景的不透明度,我想更改的只是文本的背景,我將如何修復這個?段落中的不透明度變化改變了文本的不透明度和背景不透明度
HTML
<div id="opener">
<p id="introText">
Adam Ginther is a<class id="blueText"> front-end developer</class> with an interest in responsive & mobile design
</p>
</div>
CSS
#opener {
background-image: url('images/background.jpg');
background-color: #373737;
height: 800px;
width: 100%;
position: fixed;
}
#introText {
width: 400px;
color: white;
background-color: black;
text-align: center;
display: table-cell;
position: absolute;
top: 50%;
left: 50%;
padding: 50px 80px 50px 80px;
font-family: 'Fenix', serif;
font-size: 1em;
}
#blueText {
color:#00aeff;
}
我也不能中心我的文字中 – 2013-03-16 06:29:24
頁面是你的問題解決了嗎? – 2013-03-18 06:12:16