2016-03-17 127 views
-1

我想知道是否有可能創建一個主題與CSS我們可以固定的頂部和左側,並在同一時間主題必須響應。固定頂部和左側菜單與反應設計

謝謝

+0

你可以看看http://getbootstrap.com。本網站爲您提供響應式和非響應式基本模板。 – Jer

+0

問題要求我們推薦或找到一本書,工具,軟件庫,教程或其他非本地資源是堆棧溢出 –

+0

@Paulie_D題外話我不是要求書或資源,我要求的意見,我只想知道這是否合乎邏輯。 – dbyba

回答

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>

+0

檢查我的上面的代碼片段@dbyba –

+0

謝謝例如,所以它可以做到這一點:) – dbyba

+0

一切皆有可能@dbyba。 –