HTML窗口改變頁面改變案例

<!DOCTYPE html>
<html>

 <head>
  <meta charset="utf-8" />
  <title></title>
 </head>
 <style type="text/css">
  * {
   margin: 0 auto;
   padding: 0;
  }
  
  .div1 {
   width: 1300px;
   height: 100%;
   background: #ffffff;
  }
  
  .div2 {
   width: 100%;
   height: 170px;
   background: #aaac90;
  }
  
  .header1 {
   position: relative;
   left: -480px;
   width: 100px;
   padding-top: 20px;
   font-size: 30px;
   color: red;
   
  }
  
  .header1:hover {
   
   display: block;
   transform: rotate(360deg);
   transition: all 1s;
  }
  
  .span1 {
   position: relative;
   left: 215px;
   margin-top: -25px;
   font-size: 20px;
   color: black;
  }
  
  .ul1 {
   list-style: none;
  }
  
 
  
  
  .ul1 li {
   float: left;
   border: 1px solid white;
   margin-top: 80px;
   background: blue;
   color: white;
  }
  .ul1 li:hover{
   transition: all 1s;
   background: red;
  }
  
  
  
  
  .s1:hover{
   
   transition: all 1s;
   
   transform: scale(2);
      color: yellow;
  }
  .s2:hover{
   
   transition: all 1s;
   
   transform: scale(2);
      color: yellow;
  }
  .s3:hover{
   
   transition: all 1s;
   
   transform: scale(2);
     color: yellow;
  }
  .s4:hover{
   
   transition: all 1s;
   
   transform: scale(2);
     color: yellow;
  }
  .s5:hover{
   
   transition: all 1s;
   
   transform: scale(2);
     color: yellow;
  }
  .s6:hover{
   
   transition: all 1s;
   
   transform: scale(2);
     color: yellow;
  }
  
  
  
  .div3 {
   width: 670px;
   height: 200px;
   margin-top: 10px;
   margin-left: 10px;
   float: left;
  }
  
  .div4 {
   width: 500px;
   height: 300px;
   float: right;
  }
  
  .im0 {
   margin: 10px;
  }
  
  @media only screen and (max-width:1024px ) {
   .div4{
    position: relative;
    left: -800px;
    top: 450px;
   }
   
   
   
  }
 </style>

 <body>
  <div class="div1">
   <div class="div2">

    <h3 class="header1">散文集</h3>

    <p class="span1">朱自清</p>

    <nav class="nav1">
     <ul class="ul1">
      <li><p class="s1">作者生平</p></li>
      <li><p class="s2">故事背景</p></li>
      <li><p class="s3">詞語註釋</p></li>
      <li><p class="s4">作品手法欣賞</p></li>
      <li><p class="s5">上一篇文章</p></li>
      <li><p class="s6">下一篇文章</p></li>
     </ul>
    </nav>
   </div>
   
   <div class="div3">
    <span style="font-size: 20px; "><strong>荷塘月色</strong></span>
    <節選><br><br> &nbsp;&nbsp;&nbsp;&nbsp; 這幾天心裏頗不寧靜。今晚在院子裏坐着乘涼,忽然想起日日走過的荷塘,在這滿月的光裏,總該另有一番樣子吧。月亮漸漸地升高了,牆外馬路上孩子們的歡笑,已經聽不見了;妻在屋裏拍着閏兒,迷迷糊糊地哼着眠歌。我悄悄地披了大衫,帶上門出去。 <br><br>  沿着荷塘,是一條曲折的小煤屑路。這是一條幽僻的路;白天也少人走,夜晚更加寂寞。荷塘四面,長着許多樹,蓊蓊鬱鬱的。路的一旁,是些楊柳,和一些不知道名字的樹。沒有月光的晚上,這路上陰森森的,有些怕人。今晚卻很好,雖然月光也還是淡淡的。<br> <br>  路上只我一個人,揹着手踱着。這一片天地好像是我的;我也像超出了平常的自己,到了另一世界裏。我愛熱鬧,也愛冷靜;愛羣居,也愛獨處。像今晚上,一個人在這蒼茫的月下,什麼都可以想,什麼都可以不想,便覺是個自由的人。白天裏一定要做的事,一定要說的話,現在都可不理。這是獨處的妙處,我且受用這無邊的荷香月色好了。  <br><br> <span style="font-size: 30px;">曲</span>曲折折的荷塘上面,彌望的是田田的葉子。葉子出水很高,像亭亭的舞女的裙。層層的葉子中間,零星地點綴着些白花,有嫋娜地開着的,有羞澀地打着朵兒的;正如一粒粒的明珠,又如碧天裏的星星,又如剛出浴的美人。微風過處,送來縷縷清香,彷彿遠處高樓上渺茫的歌聲似的。這時候葉子與花也有一絲的顫動,像閃電般,霎時傳過荷塘的那邊去了。葉子本是肩並肩密密地挨着,這便宛然有了一道凝碧的波痕。葉子底下是脈脈的流水,遮住了,不能見一些顏色;而葉子卻更見風致了
   </div>

   <div class="div4">
    <img src="img/AAA.png" class="im0" />

   </div>

  </div>
 </body>

</html>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章