我希望在该页面中更改背景红色
<div class="heading" id="seamless" style="display: none;">
<center>
PayPal now accepted! Make a sale and we'll email you to claim your funds.
</center>
</div>
答案 0 :(得分:1)
所以你想让标题背景颜色为红色?
然后就这样做。
<div class="heading" id="seamless" style="display: none; background: red;">
答案 1 :(得分:0)
添加一个css规则(如果类标题仅用于此目的)
.heading {
background-color: red;
}
如果没有添加新类并向其添加css规则
.newclass {
text-align: center;
background-color: red;
}
然后
<div class="heading newclass " id="seamless" style="display: none;">
PayPal now accepted! Make a sale and we'll email you to claim your funds.
</div>
答案 2 :(得分:0)
在css中使用
.heading {
background : red;
}