【发布时间】:2015-09-21 14:45:47
【问题描述】:
我有两张彼此相邻的单独图像,我希望它们是连续的。问题是我需要将最右边的图像移到左边。我可以对span mixin (narrow | wide ) 使用尺寸修饰符,但这会改变两个图像相对于一个图像的比例。
相反,我需要通过暂时移除装订线将流程中的第二张图片移到左侧。
我从他的旧帖子中读到:https://stackoverflow.com/a/13044025 我可以使用with-grid-settings,,现在是with-layout.
但是,似乎没有任何文档说明如何完成此特定操作。
执行此类任务的正确方法是什么?
提前致谢
--编辑--
HTML(简体)
<main id="grid">
<section id="main_background_container">
<img id="main_side_img"></img>
<div id="main_primary_container"></div>
</section>
</main>
SCSS
#grid{
@include container(8);
@include background-grid;
}
#main_background_container{
@extend %debug;
@include span(8);
height: auto;
float: right;
margin-top:-16px;
}
#main_side_img{
height: 65%;
@include span(1 no gutter);
}
#main_primary_container{
@include span(4 wide);
background-image: url('../images/background-2b.png');
background-position: top;
background-size: cover;
height: 65%;
}
【问题讨论】: