【发布时间】:2016-10-14 14:07:32
【问题描述】:
我注意到在我的手机上,使用这个菜单:
很明显,它超出了这张图片的行大小,并且在转换过程中创建了一个换行符,但是在桌面上,它没有。 在过渡期间它应该保持在同一行:
这是我的无礼:
.h5-menu { //h5 menu styling
@include span(4 inside);
@include transition(0.25s ease all);
font-weight:400; //override default 300
text-transform:uppercase;
color:$lb300;
padding:{
bottom:25px;
top:25px;
}
background-color:$lb700;
cursor:pointer;
}
.h5-selected { //css class to add when option is selected
@include span(8 inside);
background-color:$lb500!important;
color:$white!important;
}
在父元素上,我将布局设置为没有装订线。
我注意到,当我删除过渡时,没有换行;但是,它看起来很不稳定,无论如何我可以通过过渡来完成这项工作吗?
【问题讨论】: