我在 Squarespace 中使用页面索引。对于该索引中的一页,我想将背景更改为图像。我正在尝试更改 https://www.seacuradvisors.com/seacuradvisors 上“关于我们”部分的背景。索引的名称是 SeacureAdvisors,我尝试更新背景的页面名称是 Seacure Advisors 按钮部分。
我尝试了以下CSS,但没有成功:
#seacureadvisors #seacure-button-section {
background-image: url(https://static1.squarespace.com/static/5fce63b9abf5bd69920abec0/t/5fd2163da9eaf43bd8 5bc941/1607603780287/who+we+are+bg.png);
background-repeat: no-repeat;
background-size: cover;
}
和
div#block-c509aa91e20e639c15e8 {
background-image: url(https://static1.squarespace.com/static/5fce63b9abf5bd69920abec0/t/5fd2163da9eaf43bd8 5bc941/1607603780287/who+we+are+bg.png);
background-repeat: no-repeat;
background-size: cover;
}
似乎都不起作用。请指教!
这是您正在寻找的
selector
:
#seacure-button-section div.index-section-wrapper.page-content{
background: url(https://static1.squarespace.com/static/5fce63b9abf5bd69920abec0/t/5fd2163da9eaf43bd85bc941/1607603780287/who+we+are+bg.png);
background-repeat: no-repeat;
background-size: cover;
}