如何设置网站的宽度?

问题描述:

我为禅宗购物车网站创建了一个主题,但网站的宽度并未从我设置。如何设置网站的宽度?

该网站上有一个水平滚动。

这是我的网站。 http://harleydragon.info

请告诉我如何解决这个问题?

百分比尝试设置宽度:

#wrapper { width: 100%; } 

风格仅仅是一个烂摊子!你包含多个CSS并重新定义几次。 Have a read on how to write一个CSS,然后给它一个干净的。

enter image description here

您可以使用

<style type="text/css"> 
body{ 
    width:90% /* or you can also set 900px*/ 
} 
</style> 

你可以添加(或修改)一些CSS文件?

如果是设置

.your_website_class { 
width: your_width px !important; 
} 
+0

http://www.w3.org/TR/CSS21/cascade.html#important-rules – kubedan 2012-03-28 12:40:26

你的身体有这些

width: 1500px; // set appropriate width 
height: 1600px; // remove this line 

修复这些。

+0

我删除了高度,但仍面临同样的问题。 – Ahmad 2012-03-28 13:02:09

+0

你的宽度呢,它还是1500px? – 2012-03-28 13:07:21

+0

是的,它仍然是1500px – Ahmad 2012-03-29 10:58:45