-1
A
回答
0
我已經創建了自己的代碼只是看看下面的代碼片段: -
.main-container{position:absolute; top:0; left:0;width:100%;height:100%;background:#eee}
header{background:#aaa;height:100px;}
.second-row{width:100%;background:#999; height:calc(100% - 100px); height:-moz-calc(100% - 100px); height:-webkit-calc(100% - 100px); }
aside{width:200px;height:100%; background:#666;float:left;}
.right-blk{width:clac(100% - 200px); width:-moz-clac(100% - 200px); width:-webkit-clac(100% - 200px); height:100%; background:#ddd;overflow:auto;}
<div class="main-container">
<header>
this is fixed header
</header>
<div class="second-row">
<aside>
this is fixed left block
</aside>
<div class="right-blk">
<div><div class="lc"><h2 class="what"><span>What is Lorem Ipsum?</span></h2><p><strong>Lorem Ipsum</strong> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p></div><div class="rc"><h2 class="why"><span>Why do we use it?</span></h2><p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p></div></div>
<div><div class="lc"><h2 class="what"><span>What is Lorem Ipsum?</span></h2><p><strong>Lorem Ipsum</strong> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p></div><div class="rc"><h2 class="why"><span>Why do we use it?</span></h2><p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p></div></div>
</div>
</div>
</div>
相關問題
- 1. 固定頂部和相對左側菜單
- 2. 頂部和左側與邊緣頂部和邊緣左側
- 3. 固定頂部菜單欄
- 4. CSS:固定/固定頂部菜單欄
- 5. 頂部菜單CSS設計
- 6. 設置頂部和左側CSS屬性
- 7. Angular UI-Router多菜單(頂部水平和左側垂直菜單)
- 8. 居中固定頂部菜單UI
- 9. iOS左側,右側和底部轉換的側面菜單庫
- 10. 固定在頂部欄上的CSS必須保留在左側
- 11. 顯示內嵌爲非頂部或左側固定位置
- 12. CSS位置固定在左側但不是頂部
- 13. fullpage.js菜單固定頂
- 14. 右側和左側菜單CSS?
- 15. Bootstrap導航欄(左側菜單)未正確對齊頂部
- 16. 菜單從左側滑入 - 添加頂部邊距偏移
- 17. 帶固定頂部菜單的翻轉菜單
- 18. 導航菜單寬度大小,固定菜單頂部
- 19. 如何設計反應本機側面菜單?
- 20. 頁面頂部有固定div,右側有徽標,左側有導航鏈接
- 21. translate()vs頂部/左側定位
- 22. 無法獲得頂部和左側值
- 23. NavigationItem左側和頂部沒有顯示
- 24. 頂部和左側導航欄Sharepoint 2013
- 25. 溢出到左側和頂部?
- 26. 固定頁面左側菜單欄的位置
- 27. 液體佈局固定寬度左側菜單的
- 28. 保留固定左側菜單的點擊狀態
- 29. Iframe填充剩餘的固定寬度(左側)菜單
- 30. 帶固定頂級菜單的語義UI側欄
你可以看看http://getbootstrap.com。本網站爲您提供響應式和非響應式基本模板。 – Jer
問題要求我們推薦或找到一本書,工具,軟件庫,教程或其他非本地資源是堆棧溢出 –
@Paulie_D題外話我不是要求書或資源,我要求的意見,我只想知道這是否合乎邏輯。 – dbyba