簡體   English   中英

側面按鈕的粘滯按鈕

[英]sticky button to sidr side panel

我有jsfiddle 這里做我的工作..如果有人會幫助我使顯示按鈕與sidr面板一起浮動,我真的很感激:)

<style type="text/css">
#panel {
    position: fixed;
    top: 50%;
    right: 0px;
    width: 115px;
    height: 0px;
    text-align:right;
    z-index:9999;
    margin-top:-15px;
    transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
}
#panel:hover {
    background: #CCC;
}
</style>

<input type="button" id="panel" value="Show" style="height:30px;width: 50px;">

<script type="text/javascript">
    $('#panel').sidr({
        side: 'right',
        displace: false
    });

</script>
I modified the Jquery little   

 $('#panel,#panel-2').sidr({
    side: 'right',
    displace: false
});
$('#panel,#panel-2').click(function(){
    $('#panel-2').toggle();
    $('#panel').toggle();
});

在這里提琴http://jsfiddle.net/raghuchandrasorab/s9ex6g3x/2/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM