【发布时间】:2012-07-07 07:47:47
【问题描述】:
我正在写这个 wordpress 博客 http://www.taranmarlowjewelry.com/?page_id=7(在普通的网络浏览器上看起来不错)我尝试编辑 CSS,使其在 iphone 上看起来不错...我在我的 iphone css 文件中添加了这些行
.wrapper{
position:relative;
width:840px;
margin:0 auto;
}
.blog #page{
width:840px !important;
}
.blog #main{
width:840px !important;
}
.blog #primary {
width:220px !important;
}
.blog #content {
width: 220px !important;
}
.blog #secondary {
width:200px !important;
float:right !important;
}
但是博客和侧边栏之间有很大的空间,这个页面的宽度太宽了,而我的主页,关于页面看起来很好用 .wrapper 宽度为 840px;
这里出了什么问题?
【问题讨论】:
-
哇,有很多
!important关键字!尽量少用…… -
不,没有做任何事情 :( 但感谢 TheZ
-
这不是解决你的问题,只是对你的风格的评论。
-
啊,我明白了...但是谢谢!