【发布时间】:2016-06-17 18:38:46
【问题描述】:
我绞尽脑汁尝试获取.gridster-mobile 类以保持高度。由于高度设置为空字符串,它目前在移动设备中忽略min_size[0]。
我有一个临时修复,我只是使用媒体查询设置所有高度:
@media (max-width: 500px) {
.gridster-item{
height:120px !important;
}
}
这是网格设置:
isMobile: false, // stacks the grid items if true
mobileBreakPoint: 600, // if the screen is not wider that this, remove the grid layout and stack the items
mobileModeEnabled: true,
在移动模式下如何保持行高?
【问题讨论】:
标签: javascript angularjs angular-ui gridster