Css 在页面上个性化设置受密码保护的页面(Wordpress主题)
我正在尝试个性化我的公文包主页,它有密码保护,并且是在Wordpress中构建的,具有突出的主题() 我只在密码表单中添加了一些边距和填充,但无法更改页面背景颜色或添加背景图像 这就是我在个性化CSS中写的:Css 在页面上个性化设置受密码保护的页面(Wordpress主题),css,wordpress,forms,wordpress-theming,background-image,Css,Wordpress,Forms,Wordpress Theming,Background Image,我正在尝试个性化我的公文包主页,它有密码保护,并且是在Wordpress中构建的,具有突出的主题() 我只在密码表单中添加了一些边距和填充,但无法更改页面背景颜色或添加背景图像 这就是我在个性化CSS中写的: .post-password-form { margin-top: 20%; } .post-password-form { padding:10px; background-color: white; } 我也尝试过检查页面/元素,但没有真正做到 有人知道如何解决这个问题吗 谢谢!
.post-password-form {
margin-top: 20%;
}
.post-password-form {
padding:10px;
background-color: white;
}
我也尝试过检查页面/元素,但没有真正做到
有人知道如何解决这个问题吗
谢谢!
Federica将此添加到您的CSS中:
.container-wrap {
background-color: yellow !important; /* Generally, you don't need
to use "!important" in
your CSS, but currently
there is some overwriting
in your code and I use
"!important" as a quick
fix.
*/
background-image: url(https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png);
/* Optionally: */
background-repeat: no-repeat;
background-size: 100%; /* Sometimes it would be better to
use "cover" instead of "100%",
but in your case "100%" is the
best option.
*/
}
您应该发布html和css以获得帮助。通常,它应该类似于
body{background color:yellow;}
代码太长,无法进行复制/粘贴,但您可以检查页面。本节以“完成”开头!.container wrap
,tho,改变了网站上所有页面的背景,所以我不得不删除它!