jquery mobile - forcing panel open on wider screens

后端 未结 4 504
旧时难觅i
旧时难觅i 2020-12-16 07:39

I\'ve been trying to test my jquery mobile app on multiple devices. I currently have a panel that is opened via swipe or clicking on a \'menu\' button.

However, on

4条回答
  •  我在风中等你
    2020-12-16 08:30

    Below is my "CSS" solution. What you need to know: mnuMenu is the id of the panel that I want to always have visible on the left side of the screen and lnkMenu is the id of the a tag for the button which normally shows the panel on smaller screen widths.

        @media all and (min-width: 900px)
        {
            #mnuMenu
            {
                visibility: visible;
                position: fixed;
                left: 0;
                float: left;
                width: 300px;
                height: 100vh;
                background: none;
                -webkit-transition: none !important;
                -moz-transition: none !important;
                transition: none !important;
                -webkit-transform: none !important;
                -moz-transform: none !important;
                transform: none !important;
                -webkit-box-shadow: none;
                -moz-box-shadow: none;
                box-shadow: none;           
            }
    
            #lnkMenu
            {
                display: none;
            }
    
            .ui-content
            {
                margin-left: 325px;
            }
        }
    

提交回复
热议问题