我想使導航響應不斷變化的屏幕大小。所以,當屏幕最小化爲600或800像素時,我希望導航移動到屏幕的頂部,並可能被下降的小菜單圖像取代。使我的導航響應
我在這裏是一個完整的初學者,這也是我在stackoverflow上的第一篇文章,所以我仍然在學習如何編寫代碼,並且非常感謝一些建議。
謝謝!
body{
\t font-family: 'Lato', sans-serif;
\t background-color: #f6be21;
\t margin-right: 20px;
}
/* reset margin on all elements */
* {
\t margin: 0;
}
.blurb{
\t font-family: 'Lato', sans-serif;
\t font-size: 20px;
\t text-align: left;
\t width: 45%;
\t color: #ffffff;
\t list-style: none;
\t float: left;
\t margin-left: 60px;
\t margin-top: 60px;
\t position: absolute;
\t padding-bottom: 100px;
}
.big-number-1{
\t font-size: 70px;
\t text-align: right;
\t clear: both;
}
#main-header {
\t text-align: right;
\t width: 100%;
\t float: right;
\t position: fixed;
\t bottom: 275px;
\t height: 20px;
\t right: 50px;
\t clear: both;
}
.nav li + li:before{
\t content: "/";
\t padding: 0 9px;
\t text-decoration: none;
}
ul.nav > li {
\t display: inline;
\t list-style: none;
\t text-decoration: none;
}
ul.nav{
\t list-style: none;
\t display: inline;
}
h1.title{
\t font-size: 53.34px;
\t color: #000000;
}
a.h1{
\t text-decoration: none;
}
a{
\t text-decoration: none;
\t color: #000000;
}
a:visited{
\t color: #000000;
}
<header id="main-header">
<h1 class="title"><a href="index.php">Chris Ioannou</a></h1>
<ul class="nav">
<li>
<a>.01 about</a>
</li>
<li>
<a href="read.html">.02 read</a>
</li>
</ul>
<div class="big-number-1">
\t \t \t <h3>.01<h3>
\t \t \t \t
</header>
您可以查看創建自己的媒體查詢或查看添加引導帶,因爲這處理網站的響應端 – Toxide82
我們在這裏幫助您figu回答爲什麼,你嘗試過什麼,不起作用,但我們不在這裏爲你編寫標記和代碼。 http://stackoverflow.com/help/dont-ask – Rob
@rob感謝您的鏈接,我會通讀規則。 –