欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

CSS3實現(xiàn)超酷的黑貓警長首頁

  發(fā)布時間:2016-04-26 15:54:43   作者:佚名   我要評論
這篇文章主要為大家介紹了CSS3實現(xiàn)超酷的黑貓警長首頁的相關(guān)代碼,效果酷炫,具有一定的參考價值,感興趣的小伙伴們可以參考一下

先看看效果圖:

具體代碼:

XML/HTML Code復(fù)制內(nèi)容到剪貼板
  1. <html>  
  2. <head>  
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  4. <title>text-shadow</title>  
  5. <style type="text/css">  
  6. body {/*清除頁邊距,設(shè)計主色調(diào)*/   
  7.     padding: 0px;   
  8.     margin: 0px;   
  9.     color: #666;   
  10. }   
  11. #text-shadow-box {/*設(shè)計盒子外框樣式*/   
  12.     position: relative;/*讓內(nèi)部的定位元素以這個框為參照物*/   
  13.     width: 598px;   
  14.     height: 406px;   
  15.     background: #666;   
  16.     overflow: hidden;/*禁止內(nèi)容超過設(shè)定的區(qū)域*/   
  17.     border: #333 1px solid;   
  18. }   
  19. #text-shadow-box div.wall {/*設(shè)置背景墻樣式*/   
  20.     position: absolute;   
  21.     width: 100%;   
  22.     top: 175px;   
  23.     left: 0px   
  24. }   
  25. #text {/*設(shè)計導(dǎo)航文本樣式*/   
  26.     text-align: center;   
  27.     line-height: 0.5em;   
  28.     margin: 0px;   
  29.     font-family: helvetica, arial, sans-serif;   
  30.     height: 1px;   
  31.     color: #999;   
  32.     font-size: 80px;   
  33.     font-weight: bold;   
  34.     text-shadow: 5px -5px 16px #000;/*設(shè)計右上偏移的陰影,適當(dāng)進行模糊處理,產(chǎn)生色暈效果,陰影色為深色,營造靜謐的效果*/   
  35. }   
  36. div.wall div {/*設(shè)計前面擋風(fēng)板樣式*/   
  37.     position: absolute;   
  38.     width: 100%;   
  39.     height: 300px;   
  40.     top: 42px;   
  41.     left: 0px;   
  42.     background: #999;   
  43. }   
  44. #spotlight {/*設(shè)計覆蓋在上面的探照燈效果圖*/   
  45.     position: absolute;/*設(shè)計一個層,讓其覆蓋在頁面上,并使其滿窗口顯示,通過前期設(shè)計好的一個探照燈背景來營造神秘效果*/   
  46.     width: 100%;   
  47.     height: 100%;   
  48.     top: 0px;   
  49.     left: 0px;   
  50.     background: url(images/spotlight.png) center -300px;   
  51. }   
  52. #spotlight a {   
  53.     color:#ccc;   
  54.     text-decoration:none;   
  55.     position:absolute;   
  56.     left:47%;   
  57.     top:56%;   
  58.     float:left;   
  59. }   
  60. a img { border:none; }   
  61. </style>  
  62. </head>  
  63.   
  64. <body>  
  65. <!--本案例的結(jié)構(gòu)外套-->  
  66. <div id="text-shadow-box">  
  67.     <!--墻體外結(jié)構(gòu)-->  
  68.     <div class="wall">  
  69.         <p id="text">黑貓警長</p>  
  70.         <div></div>  
  71.     </div>  
  72.      <!--外罩,通過他可以為頁面覆蓋一層桌紙,添加特殊的藝術(shù)效果-->  
  73.     <div id="spotlight"><a href="index.htm"><img src="images/cat1.png" /></a></div>  
  74. </div>  
  75. </body>  
  76. </html>  

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助。

相關(guān)文章

最新評論