2016-11-29 98 views
0

我们使用现代化主题为我们的网站。wordpress主题的css定制

我想增加主要内容区域的大小。我只是想让背景图像(灰线)占用更少的空间。

我试过改变主题自己的css文件&自定义css文件。但它不起作用。

请参阅网站:www.gtctrust.com 或下面的图片: image

回答

1

不要使用!important有人只是建议。这里只是要求加强您的选择从:

body .container-wrapper, body .all-container-wrapper.boxed-layout{ 
    width: 1060px; 
} 

body .container-wrapper, body .body-wrapper .all-container-wrapper.boxed-layout{ 
    width: 1060px; 
} 
+0

它也可以工作。但为什么不!重要 – Ripa

+1

正如我所说,这不是推荐使用'!important',因为使用它的唯一方法是使用'!important'。只在极端情况下使用它。它可能是一个临时解决方案,但在很多情况下,它会给你带来很多麻烦。 – Ionut

0

看看这对你的作品

body .container-wrapper, body .all-container-wrapper.boxed-layout{ 
    width: 1060px; 
} 

enter image description here

+0

**不工作** – Ripa

+0

以及它为我见上IMG,尝试'宽度:1060px important' – Rahul

+0

非常感谢: )的名称正确 - 重要!标签 – Ripa