简体   繁体   English

当启用面板向左滚动时,如何显示我的页面在左侧部分可见?

[英]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%的页面面板。

  1. Panel overall width: 面板总宽度:

     .ui-panel { width: 90%; } 
  2. Panel's position (left): 小组的位置(左):

    Equals to Panel's width. 等于Panel的宽度。

     .ui-panel-position-left { left: -90% !important; } 
  3. Opening panel (3D transform): 打开面板(3D变换):

     .ui-panel-open { -webkit-transform: translate3d(97%, 0, 0) !important; transform: translate3d(97%, 0, 0) !important; } 
  4. 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; } 
  5. 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; } 

Demo 演示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何创建在我的 splunk 仪表板上滚动时始终可见的固定面板? - How to create a fixed panel that is always visible when I scroll on my splunk dashboard? 无论我横向滚动多少,怎样才能在页面左侧粘贴div? - How can i have a div stuck on the left side of the page no matter how much i scroll horizontally? 当我将水平滚动条移到最左端时,垂直滚动条不可见 - Vertical scroll bar is not visible when i moved horizant scroll bar extreme left 如何在我的页面内为左侧菜单添加不同的滚动条 - How to add a distinct scroll bar for a left menu inside my page 当我向右滚动时,我的左侧右侧出现了神秘的空白 - Mysterious white space on the right of my left when I scroll to the right 我如何将菜单放在面板左侧的引导程序中? - how i can put menu at left of panel in bootstrap? 当元素置于负数位置时,如何使页面向左滚动? - How to make the page to scroll to the left when elements placed in a negative position? 当我上下滚动HTML页面右侧内容时,如何自动选择左侧链接? - how to select automatically left side link, when I scroll the html page up and down of right side content? 将左侧面板粘贴到滚动条的顶部 - stick left panel to the top on scroll 当滚动到达容器末尾时,如何使左/右按钮消失? - How can I make left/right button disappear when the scroll gets to the end of the container?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM