HTML頁面布局,右側菜單不動,左側內容溢出后可以操作滾動條


/*導航條*/
.navbar {
    position: relative;
    min-height: 50px;
    margin-bottom: 0px;
    border: 1px solid transparent;
}

/*左側菜單欄*/
.left-menu{
    /*padding: 20px;*/
    text-align: center;
    /*background-color: bisque;*/
    position: fixed;
    top: 50px;
    bottom: 0px;
    left: 0px;
    width: 300px;
}

/*右側表單*/
.right-content {
    position: fixed; /*固定用*/
    overflow: auto; /*當內容在可顯示內容之外,生產自用的滾動條,與position: fixed一起用*/
    top: 50px;
    bottom: 0;
    right: 0;
    left: 300px;
    padding: 30px;
    padding-top: 0px;
}

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM