[英]Framework7 grid layout to include desktop view
I know that framework7 is designed for phones and tablet but is there a way to include or somehow tweak the css to make it compatible for desktop?my scenario is i have two div elements that i want to view side by side on desktop. 我知道Framework7是为手机和平板电脑设计的,但是有没有办法包含或以某种方式调整CSS以使其与桌面兼容?我的场景是我有两个div元素,我想在桌面上并排查看。
<div class="row">
<div class="col-50">panel-1</div>
<div class="col-50">panel-2</div>
</div>
But on tablet/phone view i want it to view both as 100% 但是在平板电脑/手机视图上,我希望它同时显示为100%
<div class="row">
<div class="tablet-100">panel-1</div>
<div class="tablet-100">panel-2</div>
</div>
I tried below but the documentation said tablet class is for window width >= 768px, so the width is 100% even on desktop view. 我在下面尝试过,但是文档说平板电脑类适用于窗口宽度> = 768px,因此即使在桌面视图上,宽度也是100%。
<div class="row">
<div class="col-50 tablet-100">panel-1</div>
<div class="col-50 tablet-100">panel-2</div>
</div>
I am thinking of adding a custom css like desktop-XX, but how can i add it and overwrite the current grid system? 我正在考虑添加自定义CSS,例如Desktop-XX,但是如何添加它并覆盖当前的网格系统? Any suggestion would be great thanks in advance! 任何建议都会非常感谢!
@media (min-width:768px){
.col-50{
width:50%;
}
}
this should work 这应该工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.