Text 文章文本的CSS背景色(Tumblr)
我正在尝试更改我文章中文本的背景颜色…并希望页面的背景URL图像保持原样。现在我有:Text 文章文本的CSS背景色(Tumblr),text,colors,background,Text,Colors,Background,我正在尝试更改我文章中文本的背景颜色…并希望页面的背景URL图像保持原样。现在我有: 正文{ 字体系列:{font:font},arial; 字体大小:16px; 颜色:{color:Body Text}; 位置:中心; 线高:24px; 线高:1.5em; 背景图片:url(一些url); 背景附件:固定; -webkit字体平滑:抗锯齿; } a{ 颜色:{color:Body Text}; 不透明度:.5; 背景色:黑色; } .like_按钮:悬停+.like_文本{ 不透明度:1; 背
正文{
字体系列:{font:font},arial;
字体大小:16px;
颜色:{color:Body Text};
位置:中心;
线高:24px;
线高:1.5em;
背景图片:url(一些url);
背景附件:固定;
-webkit字体平滑:抗锯齿;
}
a{
颜色:{color:Body Text};
不透明度:.5;
背景色:黑色;
}
.like_按钮:悬停+.like_文本{
不透明度:1;
背景色:黑色;
}
有人能帮忙吗?书写
背景色:黑色正文中的代码>不起作用。您可以创建另一个将在正文中使用的div,并将其背景色更改为所需的颜色。您还可以更改css上的背景色
这方面的一个基本例子如下:
mystyle.css
body {
font-family: {font:Font}, arial;
font-size: 16px;
color: {color:Body Text};
position: center;
line-height: 24px;
line-height: 1.5em;
background-image: url("https://images7.alphacoders.com/411/thumb-1920-411820.jpg");
background-attachment: fixed;
-webkit-font-smoothing: antialiased;
}
a {
color: {color:Body Text};
opacity: .5;
background-color: black;
}
p
{
text-decoration-color: floralwhite;
}
#post
{
margin-top: 200px;
margin-left: 20px;
margin-right: 20px;
border-radius: 10px;
opacity: 70;
background-color:rgba(189, 213, 239, .4);;
}
site.html
<!DOCTYPE html>
<html lang="pt-br">
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
<body>
<div id="post">
<p> A lot of text here.</p>
<p> A lot of text here.</p>
<p> A lot of text here.</p>
<p> A lot of text here.</p>
<p> A lot of text here.</p>
<p> A lot of text here.</p>
<p> A lot of text here.</p>
<p> A lot of text here.</p>
<p> A lot of text here.</p>
</div>
</body>
</html>
这里有很多文字
这里有很多文字
这里有很多文字
这里有很多文字
这里有很多文字
这里有很多文字
这里有很多文字
这里有很多文字
这里有很多文字
--
我会将其应用于:
HTML
<!DOCTYPE html>
<html lang="pt-br">
<head>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="post">
<p class="a"> A lot of text here.</p>
<p class="a"> A lot of text here.</p>
<p class="a"> A lot of text here.</p>
</div>
</body>
</html>
div是什么样子?#post{background color:Thecolor youwant}好吧,我在学校的一个项目中就是这样处理的,对我来说效果很好,你能在使用div的地方分享你的html代码吗,这样我就能看得更清楚了?我的html代码就是上面加上{背景色:黑色;但可能是在我的HTML代码的这一部分:{block:Posts}中,我应该添加一些关于背景色的内容?对不起,我有点晚了,但是,我想我不明白,你想要这样的内容吗:?
body {
font-family: {font:Font}, arial;
font-size: 16px;
color: {color:Body Text};
position: center;
line-height: 24px;
line-height: 1.5em;
background-image: url("https://images7.alphacoders.com/411/thumb-1920-411820.jpg");
background-attachment: fixed;
-webkit-font-smoothing: antialiased;
}
p.a
{
color:white;
background-color:black;
}
#post
{
margin-top: 200px;
margin-left: 20px;
margin-right: 20px;
border-radius: 10px;
opacity: 70;
background-color:rgba(189, 213, 239, .4);;
}