Heim > php教程 > php手册 > php实战第十九天

php实战第十九天

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Freigeben: 2016-06-13 10:57:28
Original
1178 Leute haben es durchsucht

今天涉猎了 ps,以及做了一个顶部导航条固定,下面给一个效果图布局.利用得是 position:fixed

 

 


[html]   
 

 
 
无标题文档 
 
 
 
 
 
 
 
a
 
b
 
c
 
d
 
e
 
    123456789
   123456789
   123456789
   123456789
   123456789
   123456789
   123456789
   123456789
   123456789
   123456789
   123456789
   123456789
   123456789
   123456789
   123456789
 
 
 
 





无标题文档




a

b

c

d

e

 123456789
 123456789
 123456789
 123456789
 123456789
 123456789
 123456789
 123456789
 123456789
 123456789
 123456789
 123456789
 123456789
 123456789
 123456789




css代码


[css]  @charset "utf-8"; 
/* CSS Document */ 
*{ 
    margin:0px; 
    padding:0px; 
    font-size:14px; 
    } 
body{ 
        background-color:#ECECEC; 
        } 
#head{ 
    position:fixed; 
    top:0px; 
     
    background:#FAFAFA; 
     
    width:100%; 
    height:54px; 
     
    border-bottom: 1px solid #E8E8E8; 
    box-shadow: 0 1px 5px rgba(34, 25, 25, 0.2); 
    z-index:100; 
     

 
#header{ 
    margin:0 auto; 
 
    width:960px; 
    height:54px; 
    } 
.nav{ 
    float: left; 
    height: 54px; 
    width: auto; 
    } 
     
.nav ul ,.nav li{ 
    float: left; 
    list-style: none outside none; 

 
li a{ 
    padding: 0 15px; 
     
    color: #585858; 
    display: block; 
    line-height: 54px; 
     
    border-right: 1px solid #E8E8E8; 

 
 
#main{ 
    position:relative; 
    top:66px; 
     
    margin:0 auto; 
    padding:10px; 
     
    width:960px; 
     
    background: none repeat scroll 0 0 #FFFFFF; 
    border: 1px solid #C7C7C7; 
     
    } 

@charset "utf-8";
/* CSS Document */
*{
 margin:0px;
 padding:0px;
 font-size:14px;
 }
body{
  background-color:#ECECEC;
  }
#head{
 position:fixed;
 top:0px;
 
 background:#FAFAFA;
 
 width:100%;
 height:54px;
 
 border-bottom: 1px solid #E8E8E8;
 box-shadow: 0 1px 5px rgba(34, 25, 25, 0.2);
 z-index:100;
 
}

#header{
 margin:0 auto;

 width:960px;
 height:54px;
 }
.nav{
 float: left;
    height: 54px;
    width: auto;
 }
 
.nav ul ,.nav li{
 float: left;
    list-style: none outside none;
}

li a{
    padding: 0 15px;
   
    color: #585858;
    display: block;
    line-height: 54px;
 
 border-right: 1px solid #E8E8E8;
}


#main{
 position:relative;
 top:66px;
 
 margin:0 auto;
 padding:10px;
 
 width:960px;
 
 background: none repeat scroll 0 0 #FFFFFF;
    border: 1px solid #C7C7C7;
 
 }

 

Verwandte Etiketten:
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Aktuelle Ausgaben
PHP-Datenerfassung?
Aus 1970-01-01 08:00:00
0
0
0
PHP-Erweiterung intl
Aus 1970-01-01 08:00:00
0
0
0
Wie man PHP gut lernt
Aus 1970-01-01 08:00:00
0
0
0
Mehrere PHP-Versionen
Aus 1970-01-01 08:00:00
0
0
0
Beliebte Empfehlungen
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage