我已经在PS中设计了一个布局,使用了12列的网格,并且希望在Wordpress中使用它。 我使用遐想主题开始,这是一个框架主题thingy在基础上工作。Div's not responsive [foundation]
我得到我的头像它应该工作,但它下面的内容不会调整到屏幕大小。 生病后的代码,我有如下:
page.php文件:
<?php get_header(); ?>
<div class="container">
<!-- Row for main content area -->
<div class="large-12 medium-12 small-12 columns" id="content" role="main">
<div id="top-content" class="large-12 medium-12 small-12">
</div> <!-- end top-content">
<footer>
<center><p class="copy">© <?php echo date('Y'); ?> Roelof Plas. Ontwerp door <a href="http://roelofplas.nl" rel="nofollow" title=""><span class="roelof">roelofplas.nl.</span></a> Alle rechten voorbehouden.</p></center>
</footer>
</div>
</div>
<?php get_footer(); ?>
的style.css:
#top-content {
width: 1140px;
height: 530px;
background-color: #63bcb8;
z-index: 1000;
top: -48px;
position: absolute;
}
什么它应该看起来像(只是turquase DIV ):
我还未能发表图片(需要2个rep)所以click this.
直播版本:click me
请告诉我,我做错了什么。我读了大量有关基金会和网格等的教程,但我无法做到。
如果你需要更多的信息,请告诉我。
问候,
鲁洛夫普拉斯
SOLUTION BY Joel,感谢队友!不能代表你,但我会尽我所能! :D
非常感谢,先生,我不太了解@wikijames他对所需的任何宽度的东西,所以我试着你的awnser这就像一个魅力工作。 – 2014-09-11 11:41:31