用HTML編寫迪士尼樂園頁面

来源:https://www.cnblogs.com/yangkaiming/archive/2018/04/22/8908379.html
-Advertisement-
Play Games

<!DOCTYPE html><html xmlns="http://www.w3.org/1999/html"><head lang="en"> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="../css/r ...


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head lang="en">
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="../css/reset.css"/>
<link rel="stylesheet" href="../css/disini.css"/>
</head>
<body>
<div class="disini">
<!--頭部-->
<header>
<nav>
<a href="#"><i class="aa"></i>首頁</a>
<a href="#"><i class="bb"></i>商店</a>
<a href="#"><i class="cc"></i>樂園</a>
<img src="../images/b_logo.png" alt=""/>
<a href="#"><i class="dd"></i>影視</a>
<a href="#"><i class="ee"></i>數位</a>
<a href="#"><i class="ff"></i>會員</a>
</nav>
</header>
<img src="../images/160216172223655101.jpg" alt=""/>
<!--img,figcaption是figure的子級-->
<div>
<h1 class="red">明星</h1>
<figure class="yes"><img src="../images/151209173849244246.jpg" alt=""/>
<figcaption>米老鼠和他的朋友們</figcaption>
</figure>
<figure class="yes"><img src="../images/151209173747572402.jpg" alt=""/>
<figcaption>迪士尼公主</figcaption>
</figure>
<figure class="yes"><img src="../images/151130185638114248.jpg" alt=""/>
<figcaption>賽車總動員</figcaption>
</figure>
<figure class="yes"><img src="../images/151130185656630780.jpg" alt=""/>
<figcaption>小公主蘇菲亞</figcaption>
</figure>
<figure class="yes"><img src="../images/151130185733287815.jpg" alt=""/>
<figcaption>冰雪奇緣</figcaption>
</figure>
<figure class="yes"><img src="../images/151130185754146838.jpg" alt=""/>
<figcaption>星球大戰</figcaption>
</figure>
</div>
<!--img,figcaption是figure的子級-->
<div class="blue">
<h1>商店</h1>
<img class="yellow" src="../images/160322141822716049.jpg" alt=""/>
<figure ><img class="green" src="../images/161124154351492230.jpg" alt=""/>
<figcaption></figcaption>
</figure>
<figure><img class="green" src="../images/161124154351492230.jpg" alt=""/>
<figcaption></figcaption>
</figure>
<figure><img class="green" src="../images/161124154351492230.jpg" alt=""/>
<figcaption></figcaption>
</figure>
<figure><img class="green" src="../images/161124154351492230.jpg" alt=""/>
<figcaption></figcaption>
</figure>
</div>
<!--div迪士尼資訊-->
<div class="ll">
<h1>迪士尼資訊</h1>
</div>
<div class="end">
<div class="op">
<div>
<img class="ab" src="../images/160113121641905797.jpg" alt=""/>
</div>
<div class="cd">
<h1>上海迪士尼樂園開園在即!</h1>
<a href="">自2016年6月16日起,你將可以探索一個前所未有的神奇世界,每個人都能在這裡點亮心中奇夢。<i></i></a>
</div>
</div>
<div class="op">
<div>
<div class="op" >
<div> <img about="ef" src="../images/160321105131828720.jpg" alt=""/></div>
<div class="gh"><h1><strong>《瘋狂動物城》票房突破10億人名幣!</strong></h1>
<a href="">《瘋狂動物城》上映16日登頂中國動物賣座第一,併成為史上首部破10億動畫片<i></i></a>
</div>
</div>
<div class="mn">
<div><img class="ef" src="../images/160225171114064621.jpg" alt=""/></div>
<div class="gh">
<h1><strong>全球首座迪士尼音樂報時鐘樓正式落成</strong></h1>
<a href="">迪士尼鐘樓將與迪士尼旗艦店一起為上海帶來一份奇妙而夢幻的娛樂購物體驗。<i></i></a>
</div>
</div>
</div>
<div class="op" >
<div class="op"><img class="ef" src="../images/160229155948703765.jpg" alt=""/></div>
<div class="mm" >
<h1><strong>《頭腦特工隊》獲得第88屆奧斯卡最佳動畫長片</strong></h1>
<a href="">皮克斯《頭腦特工隊》獲得88屆奧斯卡最佳動畫長片!實至名歸.<i></i></a>
</div>
</div>
</div>
</div>
<!--頁腳-->
<div>
<footer>
<div class="" >
<div class="hh"><img src="../images/b_logo.png" alt=""/></div>
<div>
<div class="oo">
<figure><img src="../images/weibo.jpg" alt=""/>
<figcaption>關註我們的微博</figcaption>
</figure>
</div>
<div class="oo"> <figure><img src="../images/weibo.jpg" alt=""/>
<figcaption>關註我們的微信</figcaption>
</figure>
</div>
</div>
</div>
<div class="yy">
<div class="tt">
<a href=""><strong>關於我們</strong></a>
<a href=""><strong>加入我們</strong></a>
<a href=""><strong>法律條規</strong></a>
<a href=""><strong>隱私政策</strong></a>
<a href=""><strong>退換貨政策</strong></a>
</div>
<p>Disney!Pixar All rights reserved.備案號:瀘B2-20040339-3</p>
</div>
</footer>
</div>

</div>

</body>
</html>

以下是css
.disini{
width: 1200px;
height: 4000px;
margin: 0 auto;
border: 1px solid gray;
}
header{
text-align: center;
background-color: #ffffff;
}
nav>a{
display:inline-block;
width: 14.28%;
color: black;
}
.aa{
display: inline-block;
width: 21px;
height: 20px;
background-image: url("../images/icon.png");
}
header{
margin-bottom: 20px;
}
nav>a:hover{
color: red;
}
.aa:hover{
background-position:-21px 0 ;
}
.bb{
display: inline-block;
width: 21px;
height: 20px;
background-image: url("../images/icon.png");
background-position: 0 -20px;
}
.bb:hover{
display: inline-block;
width: 21px;
height: 20px;
background-image: url("../images/icon.png");
background-position: -22px -20px;
}
.cc{
display: inline-block;
width: 21px;
height: 23px;
background-image: url("../images/icon.png");
background-position: 0 -42px;
}
.cc:hover{
display: inline-block;
width: 21px;
height: 23px;
background-image: url("../images/icon.png");
background-position: -22px -42px;
}
.dd{
display: inline-block;
width: 21px;
height: 18px;
background-image: url("../images/icon.png");
background-position: 0 -64px;
}
.dd:hover{
display: inline-block;
width: 21px;
height: 18px;
background-image: url("../images/icon.png");
background-position: -22px -64px;
}
.ee{
display: inline-block;
width: 13px;
height: 22px;
background-image: url("../images/icon.png");
background-position: 0 -82px;
}
.ee:hover{
display: inline-block;
width: 21px;
height: 17px;
background-image: url("../images/icon.png");
background-position: -22px -82px;
}
.ff{
display: inline-block;
width: 21px;
height: 17px;
background-image: url("../images/icon.png");
background-position: 0 -102px;
}
.ff:hover{
display: inline-block;
width: 21px;
height: 17px;
background-image: url("../images/icon.png");
background-position: -22px -102px;
}

/*div明星*/
.red{
text-align: center;
font-size: 40px;
margin-top: 56px;
margin-bottom: 42px;
}
figure>img{
width: 114px;
}
.yes{
margin:0 40px ;
float: left;
}
/*div 商店*/
.blue>h1{
text-align: center;
font-size: 40px;
margin-top: 60px;
margin-bottom:38px ;
}
.yellow{
width:600px ;
height: 520px;
float: left;
}
.green {
width: 300px;
height: 260px;
float: left;
border-top: 1px solid gray;
border-bottom: 1px solid gray ;
border-left: 1px solid gray;
box-sizing: border-box;
}
/*迪士尼資訊*/
.ll>h1{
text-align: center;
margin-top: 60px;
margin-bottom:42px ;
font-size: 40px;
}

.end a{
color: gray;
font-size: 14px;
}
.ab{
width: 600px;
height:480px ;
}
.cd{
width: 600px;
height: 300px;
border-top: 1px solid gray;
border-bottom: 1px solid gray ;
border-right: 1px solid gray;
box-sizing: border-box;
}
.ef{
width: 300px;
height: 300px;
}
.gh{
width: 299px;
height: 180px;
border-left: 1px solid gray;
box-sizing: border-box;
}

.op{
float: left;

}
.mn{
float: right;
}
.mm{
width: 300px;
height: 300px;
float: left;
border-top: 1px solid gray;
border-bottom: 1px solid gray ;
box-sizing: border-box;
}
.cd>h1{
font-size: 30px;
margin:44px 200px 30px 40px ;
}
.cd>a{
margin: 0 50px;
}
.end i{
display: inline-block;
width:14px;
height: 14px;
background-image: url("../images/icon.png");
background-position: -49px -102px;
}

/*頁腳*/
.hh{
height: 80px;
float: left;
padding-right:30px ;
margin-left:400px ;
margin-top: 110px;
border-right: 1px solid gray;
}
.oo{
float: left;
margin-top: 110px;
margin-right: 34px;
margin-left: 68px;
}
footer{
margin-top: 90px;
}
.hh>figure{
margin-right: 68px;
margin-left:78px ;
}

.tt{
text-align: center;
border-top: 1px solid gray;
padding-top: 20px;

}
p{
color: gray;
font-size: 10px;
text-align: center;
}
.yy{
float: right;
margin-right: 300px;
margin-top: 30px;

}
.yy a{
font-size: 18px;
color: black;
margin-right:40px ;
text-decoration: none;
}



您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • 本文為mariadb官方手冊:XtraDB/InnoDB中的AUTO_INCREMENT處理方式的譯文。 原文:https://mariadb.com/kb/en/auto_increment-handling-in-xtradbinnodb/ 我提交到MariaDB官方手冊的譯文:https:// ...
  • Android的擴展工程包含在external文件夾中,這是一些經過修改後適應Android系統的開源工程,這些工程有些在主機上運行,有些在目標機上運行; (主機)ext2文件系統生成工具 ...
  • 一、Android中的緩存策略 一般來說,緩存策略主要包含緩存的添加、獲取和刪除這三類操作。如何添加和獲取緩存這個比較好理解,那麼為什麼還要刪除緩存呢?這是因為不管是記憶體緩存還是硬碟緩存,它們的緩存大小都是有限的。當緩存滿了之後,再想其添加緩存,這個時候就需要刪除一些舊的緩存並添加新的緩存。 因此L ...
  • 先展示一下四種對話框的效果圖: 普通對話框 單選對話框: 多選對話框: 進度條對話框: 一個簡單的佈局,放四個按鈕: 四種對話框: ...
  • UIImage* img=[UIImage imageNamed:@"name.png"];//原圖 UIEdgeInsets edge=UIEdgeInsetsMake(0, 10, 0,10); //UIImageResizingModeStretch:拉伸模式,通過拉伸UIEdgeInsets... ...
  • 之前做過一版h5微信聊天移動端,這段時間閑來無事就整理了下之前項目,又重新在原先的那版基礎上升級了下,如是就有了現在的h5仿微信聊天高仿版,新增了微聊、通訊錄、探索、我四個模塊 左右觸摸滑屏切換,聊天頁面優化了多圖預覽、視頻播放,長按菜單UI,聊天底部編輯器重新優化整理(新增多表情),彈窗則用到了自 ...
  • 原文摘自:https://www.cnblogs.com/moqiutao/archive/2015/12/23/5070463.html 總節: 1) 定義字體標準格式: 2)字體轉換網址: http://www.freefontconverter.com/https://everythingfo ...
  • 最近因為工作關係,一直在做node.js的開發,學習了koa框架,orm框架sequelize,以及swagger文檔的配置。但是,最近因為swagger文檔使用了es6的修飾器那麼個東西(在java中被稱作註解),所以,node.js無法編譯項目,所以就需要使用babel對es6進行轉換。因為這篇 ...
一周排行
    -Advertisement-
    Play Games
  • 移動開發(一):使用.NET MAUI開發第一個安卓APP 對於工作多年的C#程式員來說,近來想嘗試開發一款安卓APP,考慮了很久最終選擇使用.NET MAUI這個微軟官方的框架來嘗試體驗開發安卓APP,畢竟是使用Visual Studio開發工具,使用起來也比較的順手,結合微軟官方的教程進行了安卓 ...
  • 前言 QuestPDF 是一個開源 .NET 庫,用於生成 PDF 文檔。使用了C# Fluent API方式可簡化開發、減少錯誤並提高工作效率。利用它可以輕鬆生成 PDF 報告、發票、導出文件等。 項目介紹 QuestPDF 是一個革命性的開源 .NET 庫,它徹底改變了我們生成 PDF 文檔的方 ...
  • 項目地址 項目後端地址: https://github.com/ZyPLJ/ZYTteeHole 項目前端頁面地址: ZyPLJ/TreeHoleVue (github.com) https://github.com/ZyPLJ/TreeHoleVue 目前項目測試訪問地址: http://tree ...
  • 話不多說,直接開乾 一.下載 1.官方鏈接下載: https://www.microsoft.com/zh-cn/sql-server/sql-server-downloads 2.在下載目錄中找到下麵這個小的安裝包 SQL2022-SSEI-Dev.exe,運行開始下載SQL server; 二. ...
  • 前言 隨著物聯網(IoT)技術的迅猛發展,MQTT(消息隊列遙測傳輸)協議憑藉其輕量級和高效性,已成為眾多物聯網應用的首選通信標準。 MQTTnet 作為一個高性能的 .NET 開源庫,為 .NET 平臺上的 MQTT 客戶端與伺服器開發提供了強大的支持。 本文將全面介紹 MQTTnet 的核心功能 ...
  • Serilog支持多種接收器用於日誌存儲,增強器用於添加屬性,LogContext管理動態屬性,支持多種輸出格式包括純文本、JSON及ExpressionTemplate。還提供了自定義格式化選項,適用於不同需求。 ...
  • 目錄簡介獲取 HTML 文檔解析 HTML 文檔測試參考文章 簡介 動態內容網站使用 JavaScript 腳本動態檢索和渲染數據,爬取信息時需要模擬瀏覽器行為,否則獲取到的源碼基本是空的。 本文使用的爬取步驟如下: 使用 Selenium 獲取渲染後的 HTML 文檔 使用 HtmlAgility ...
  • 1.前言 什麼是熱更新 游戲或者軟體更新時,無需重新下載客戶端進行安裝,而是在應用程式啟動的情況下,在內部進行資源或者代碼更新 Unity目前常用熱更新解決方案 HybridCLR,Xlua,ILRuntime等 Unity目前常用資源管理解決方案 AssetBundles,Addressable, ...
  • 本文章主要是在C# ASP.NET Core Web API框架實現向手機發送驗證碼簡訊功能。這裡我選擇是一個互億無線簡訊驗證碼平臺,其實像阿裡雲,騰訊雲上面也可以。 首先我們先去 互億無線 https://www.ihuyi.com/api/sms.html 去註冊一個賬號 註冊完成賬號後,它會送 ...
  • 通過以下方式可以高效,並保證數據同步的可靠性 1.API設計 使用RESTful設計,確保API端點明確,並使用適當的HTTP方法(如POST用於創建,PUT用於更新)。 設計清晰的請求和響應模型,以確保客戶端能夠理解預期格式。 2.數據驗證 在伺服器端進行嚴格的數據驗證,確保接收到的數據符合預期格 ...