页面左边导航固定,右边自适应宽度
生活随笔
收集整理的這篇文章主要介紹了
页面左边导航固定,右边自适应宽度
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
模式一:
<style type="text/css"> div { height:300px; border:2px solid #306;} .left{width:300px; position:absolute; left:0; top:0;} .right{ margin-left:310px;} body{margin:0; padding:0;} </style> </head><body><div class="left"></div><div class="right"></div> </body>?
模式二:
<style type="text/css"> div { height:300px; border:2px solid #306;} .left{width:300px; position:absolute; left:0; top:0;} .center{ margin-left:310px; margin-right:200px;} .right { width:190px;position:absolute; right:0; top:0;} body{margin:0; padding:0;} </style> </head><body><div class="center"></div><div class="left"></div><div class="right"></div> </body>?
轉載于:https://www.cnblogs.com/wanliyuan/p/3696977.html
總結
以上是生活随笔為你收集整理的页面左边导航固定,右边自适应宽度的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MFC(ActiveX编程,孙鑫C++第
- 下一篇: linux无线网卡的安装