[英]How can I display my page to be visible partially on left when the panel scroll left is enabled?
IN this link , I can find that there is over lay option where I can hide or show the panel on right or left. 在这个链接中 ,我可以发现有一个覆盖选项,我可以隐藏或显示右侧或左侧的面板。 But I want to display the panel 90% or + in panel. 但我想在面板中显示90%或+的面板。 The same example as in facebook mobile where we have option of seeing friends list on right simultaneously a little part of news feed. 与facebook mobile相同的例子,我们可以选择同时看到朋友列表的新闻提要的一小部分。
I have tried some code in the link provided above which has the code as 我在上面提供的链接中尝试了一些代码为的代码
<div data-role="page">
<div data-role="panel" id="mypanel">
<!-- panel content goes here -->
</div><!-- /panel -->
<!-- header -->
<!-- content -->
<!-- footer -->
</div><!-- page -->
what more must be implemented for this to bring it to the state when when the panel is visible only 90% of my page must be hidden towards one side of the page. 当面板可见时,只有90%的页面必须隐藏在页面的一侧,才能将其带入状态。
Thanks 谢谢
You need to override many class in order to achieve 90% panel of page. 您需要覆盖许多类才能实现90%的页面面板。
Panel overall width: 面板总宽度:
.ui-panel { width: 90%; }
Panel's position (left): 小组的位置(左):
Equals to Panel's width. 等于Panel的宽度。
.ui-panel-position-left { left: -90% !important; }
Opening panel (3D transform): 打开面板(3D变换):
.ui-panel-open { -webkit-transform: translate3d(97%, 0, 0) !important; transform: translate3d(97%, 0, 0) !important; }
Animation: 动画:
Increase or reduce speed (ms). 增加或减少速度(ms)。
.ui-panel-animate { -webkit-transition: -webkit-transform 500ms ease; -moz-transition: -moz-transform 500ms ease; transition: transform 500ms ease; }
Panel's overlay/wrapper: 面板的叠加/包装:
This includes clickable area for panels with data-dismissible
set to true or false 这包括data-dismissible
设置为true或false的面板的可单击区域
.ui-panel-content-wrap-position-left.ui-panel-content-wrap-open, .ui-panel-dismiss-position-left.ui-panel-dismiss-open { left: 90% !important; right: -90% !important; }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.