I have a little problem with Foundation 5 and the grid.
我对基础5和网格有一点疑问。
I try to apply an offset only for medium screen, but it seem to apply on large and small screen too. There is the code :
我试着只对中屏应用一个偏移量,但它似乎也适用于大屏幕和小屏幕。代码如下:
<div class="row">
<div class="large-6 medium-offset-1 medium-6 columns">
<p>Hello world</p>
</div>
<div class="large-6 medium-5 columns">
<div class="right"><p>Hello world 2</p></div>
</div>
</div>
As you can see medium-offset-1
is only for medium but the large screen have also the offset...
你可以看到中等偏置1只是中等大小,但大屏幕也有偏移量……
Why is that ?
这是为什么呢?
1 个解决方案
#1
6
You can explicitly use large-offset-0
可以显式地使用big -offset-0
<div class="row">
<div class="large-6 medium-offset-1 large-offset-0 medium-6 columns">
<p>Hello world</p>
</div>
<div class="large-6 medium-5 columns">
<div class="right"><p>Hello world 2</p></div>
</div>
</div>
#1
6
You can explicitly use large-offset-0
可以显式地使用big -offset-0
<div class="row">
<div class="large-6 medium-offset-1 large-offset-0 medium-6 columns">
<p>Hello world</p>
</div>
<div class="large-6 medium-5 columns">
<div class="right"><p>Hello world 2</p></div>
</div>
</div>