CSS的position属性完全解析

2020-05-12 07:50:24易采站长站整理

       #header {   
         position: fixed;   
         width: 100%;   
         height: 15%;   
         top: 0;   
         rightright: 0;   
         bottombottom: auto;   
         left: 0;   
       }   
       #sidebar {   
         position: fixed;   
         width: 10em;   
         height: auto;   
         top: 15%;   
         rightright: auto;   
         bottombottom: 100px;   
         left: 0;   
       }   
       #main {   
         position: fixed;   
         width: auto;   
         height: auto;   
         top: 15%;   
         rightright: 0;   
         bottombottom: 100px;   
         left: 10em;   
       }   
       #footer {   
         position: fixed;   
         width: 100%;   
         height: 100px;   
         top: auto;   
         rightright: 0;   
         bottombottom: 0;   
         left: 0;   
       }