I set the width of my panel according to the sample in http://view.jquerymobile.com/1.3.1/dist/demos/examples/panels/panel-styling.html. Everything goes fine, but my fixed toolber in the footer moves further than the header and the contents. This makes a gap from the fixed toolbar to the panel. Anybody knows how to fix this? Thanks.
问问题
2630 次
1 回答
1
#demo-page #left-panel.ui-panel {
width: 15em;
}
#demo-page #left-panel.ui-panel-closed {
width: 0;
}
#demo-page .ui-panel-position-left.ui-panel-display-reveal {
left: 0;
}
#demo-page .ui-panel-content-fixed-toolbar-position-left.ui-panel-content-fixed-toolbar-open,
.ui-panel-content-wrap-position-left.ui-panel-content-wrap-open,
.ui-panel-dismiss-position-left.ui-panel-dismiss-open {
left: 15em;
right: -15em;
}
#demo-page .ui-panel-animate.ui-panel-content-fixed-toolbar-position-left.ui-panel-content-fixed-toolbar-open.ui-panel-content-fixed-toolbar-display-reveal,
.ui-panel-animate.ui-panel-content-wrap-position-left.ui-panel-content-wrap-open.ui-panel-content-wrap-display-reveal {
left: 0;
right: 0;
-webkit-transform: translate3d(15em,0,0);
-moz-transform: translate3d(15em,0,0);
transform: translate3d(15em,0,0);
}
/* Reveal menu shadow on top of the list items */
#demo-page .ui-panel-display-reveal {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
#demo-page .ui-panel-content-fixed-toolbar-position-left, .ui-panel-content-wrap-position-left {
-webkit-box-shadow: -5px 0px 5px rgba(0,0,0,.15);
-moz-box-shadow: -5px 0px 5px rgba(0,0,0,.15);
box-shadow: -5px 0px 5px rgba(0,0,0,.15);
}
于 2013-04-15T16:50:05.857 回答