通過HTML和CSS1:1還原風暴英雄官方網站

来源:https://www.cnblogs.com/TomHe789/archive/2020/02/26/12367213.html
-Advertisement-
Play Games

<!--HTML代碼--> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>《風暴英雄》官方網站_暴雪出品 明星匯聚 MOBA競技新篇章</title> <link rel="shortcut icon" h ...



<!--HTML代碼-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>《風暴英雄》官方網站_暴雪出品 明星匯聚 MOBA競技新篇章</title>
    <link rel="shortcut icon" href="heroes.ico" type="image/x-icon">
    <link rel="stylesheet" href="font/iconfont.css">
    <link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/index.css">
</head>
<body>

    <div class="header">
        <div class="headerTop">
        </div>
        <ul>
            <li><a href="#"></a></li>
            <li><a href="#"></a></li>
            <li><a href="#"></a></li>
            <li><a href="#"></a></li>
        </ul>
        <div class="logo">
            <img src="images/logo.png" alt="">
        </div>
        <a href="#"></a>
    </div>
    <div class="main">
        <div class="slogn"></div>
        <ul class="eyeList">
            <li class="eyeItem">
                <!--<img src="images/borde1.png" alt="">-->
                <a href="#"><img src="images/eye1.jpg" alt=""></a>
                <h3>顛覆傳統 MOBA 2.0</h3>
            </li>
            <li class="eyeItem">
                <!--<img src="images/borde1.png" alt="">-->
                <a href="#"><img src="images/eye2.jpg" alt=""></a>
                <h3>賽季性樞紐異變:經驗球</h3>
            </li>
            <li class="eyeItem">
                <!--<img src="images/borde1.png" alt="">-->
                <a href="#"><img src="images/eye3.jpg" alt=""></a>
                <h3>2020暴雪打折季</h3>
            </li>
        </ul>
    </div>
    <div class="footer">
        <div class="footer_in">
            <div class="footer_top clearfix">
                <div class="fl">
                    <a href="#">
                        <i></i>
                        線上客服
                    </a>
                    <a href="#">
                        <i></i>
                        反饋
                    </a>
                    <a href="#">
                        <i></i>
                        加入我們
                    </a>
                </div>
                <div class="fr">
                    <span>合作品牌</span>
                    <i></i>
                    <b class="iconfont icon-jiahao"></b>
                    <span>|</span>
                    <b class="iconfont icon-sanjiaodown"></b>
                </div>
            </div>
            <div class="footer_middle clearfix">
                <div class="fl middle_left">
                    <img src="images/blizzard.png" alt="">
                    <img src="images/163.png" alt="">
                </div>
                <div class="rl middle_right">
                    <p>
                        <a href="#">隱私</a>
                        <span>|</span>
                        <a href="#">法律條款</a>
                        <span>|</span>
                        <a href="#">API</a>
                    </p>
                    <div>
                        <p>©2019 暴雪娛樂有限公司版權所有 由上海網之易網路科技發展有限公司運營 著作權侵權 | 新廣出審[2014]1356號</p>
                        <p>
                            <a href="#">文網進字[2014]0115號</a> |
                            <a href="#">滬網文號〔2017〕9633-727號</a> |
                            <a href="#">增值電信業務經營許可證編號:滬B2-20080012</a>
                        </p>
                        <p>互聯網違法和不良信息舉報電話:0571-28090163 滬公網安備 31011502022167號 |
                            <a href="#">上海市網路游戲行業自律公約</a>
                        </p>
                        <p>
                            <img src="images/footer1.png" alt="">
                            <img src="images/footer2.png" alt="">
                            <img src="images/footer3.png" alt="">
                            <img src="images/footer4.png" alt="">
                            <img src="images/footer5.png" alt="">
                            <span>|</span>適齡提示:適合13歲及以上使用 <a href="#">家長監護工程></a>
                        </p>
                    </div>

                    <div class="bottom"></div>
                </div>
            </div>
            <div class="footer_bottom">
                <p>積極健康的游戲心態是健康游戲的開端,本游戲故事情節設置緊湊,請您合理控制游戲時間,避免沉溺游戲影響生活,註意自我保護,防範網路陷阱。</p>
                <p>健康游戲忠告:抵制不良游戲,拒絕盜版游戲。註意自我保護,謹防受騙上當。適度游戲益腦,沉迷游戲傷身。合理安排時間,享受健康生活。</p>
            </div>
        </div>
    </div>
    <video autoplay loop muted poster="images/bg.jpg">
        <source src="images/bg.mp4" type="video/mp4">
        <source src="images/bg.webm" type="video/webm">
    </video>
</body>
</html>

 

/*CSS代碼*/
/*
背景開始*/ video{ width: 100%; height: 1080px; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 3; } /*背景結束*/ /*頭部開始*/ .header>.headerTop{ width: 100%; height: 150px; background-image: url(../images/headerTop.png); background-repeat: repeat-x; position: absolute; z-index: 4; top: 0; } .header>ul{ width: 1260px; height: 98px; margin: 0 auto; padding: 0; padding-top: 85px; list-style: none; z-index: 10; position: absolute; left: 50%; transform: translateX(-50%); /*position: relative;*/ } .header>ul>li{ margin: 0; padding: 0; width: 215px; float: left; height: 98px; font-size: 18px; /*position: relative;*/ } .header>ul>li:nth-child(2){ margin-right: 398px; } .header>ul>li>a{ display: block; width: 100%; height: 100%; text-align: center; background: url("../images/hover.png"); transition: background-position 0s; } .header>ul>li:nth-child(2)>a{ background-position: 0 0; } .header>ul>li:nth-child(1)>a:hover{ background-position: 0 -98px; } .header>ul>li:nth-child(2)>a{ background-position: -215px 0; } .header>ul>li:nth-child(2)>a:hover{ background-position: -215px -98px; } .header>ul>li:nth-child(3)>a{ background-position: -825px 0; } .header>ul>li:nth-child(3)>a:hover{ background-position: -825px -98px; } .header>ul>li:nth-child(4)>a{ background-position: -1040px 0; } .header>ul>li:nth-child(4)>a:hover{ background-position: -1040px -98px; } .header>.logo{ width: 768px; position: absolute; left: 50%; margin-left: -394px; top: 0; z-index: 9; } .header>a{ width: 393px; height: 248px; position: absolute; left: 50%; transform: translateX(-50%); z-index: 11; } /*頭部結束*/ /*內容開始*/ .main{ width: 100%; height: 1080px; position: relative; /*background-color: skyblue;*/ } .main>.slogn{ /*width: 100%;*/ background: url(../images/slogan.png) no-repeat 0 0; width: 1372px; height: 419px; position: absolute; left: 50%; margin-left: -698px; top: 300px; z-index: 5; } .main>.eyeList{ /*width: 100%;*/ /*background-color: skyblue;*/ width: 1061px; list-style: none; position: absolute; left: 50%; transform: translateX(-50%); bottom: 80px; z-index: 7; text-align: center; } .main>.eyeList>.eyeItem{ /*background-color: brown;*/ width: 347px; height: 219px; float: left; background-image: url("../images/borde1.png"); background-repeat: no-repeat; position: relative; } .main>.eyeList>.eyeItem>a{ position: absolute; top: 25px; left: 25px; } .main>.eyeList>.eyeItem>h3{ position: absolute; top: 160px; left: 100px; font-size: 16px; font-weight: 400; color: #feda03; text-align: center; height: 25px; line-height: 25px; } /*內容結束*/ /*底部開始*/ .footer{ width: 100%; height: 502px; background-color: #0D0017; position: absolute; left: 0; top: 1080px; border-top: 2px solid #ff7e00; } .footer>.footer_in{ width: 1000px; height: 422px; margin: 0 auto; } .footer_in>.footer_top{ padding-top: 125px; padding-bottom: 45px; } .footer>.footer_in>.footer_top>.fl>a{ display: inline-block; text-decoration: none; font-size: 14px; color: #fff; margin-right: 10px; } .footer>.footer_in>.footer_top>.fl i{ display: inline-block; width: 19px; height: 19px; background: url("../images/footer-top.png") no-repeat; background-position: -6px -7px; margin-right: 7px; vertical-align: text-top; } .footer>.footer_in>.footer_top>.fl a:nth-child(2)>i{ background-position: -36px -8px; } .footer>.footer_in>.footer_top>.fl a:nth-child(3)>i{ background-position: -6px -100px; } .footer>.footer_in>.footer_top>.fr{ float: right; height: 30px; line-height: 30px; } .footer>.footer_in>.footer_top>.fr>span{ font-size: 14px; color: #fff; margin: 0 10px; } .footer>.footer_in>.footer_top>.fr>i{ display: inline-block; width: 95px; height: 26px; background: url("../images/footer-top.png") no-repeat; background-position: -142px -44px; vertical-align: top; } .footer>.footer_in>.footer_top>.fr>b{ display: inline-block; width: 14px; height: 14px; line-height: 14px; text-align: center; font-size: 12px; color: #fff; background: #2b0473; border: 1px solid #462385; } .footer .footer_middle .rl{ float: left; } .middle_left{ margin-right: 75px; } .footer_middle>.rl>p>a{ display: inline-block; text-decoration: none; color: #ccc; font-size: 12px; margin-left: 10px; } .footer_middle>.rl>p>span{ font-size: 14px; color: #ccc; margin: 0 10px; } .footer_middle>.rl>div>p{ font-size: 12px; color: #8eb1bc; } .footer_middle>.rl>div>p>a{ text-decoration: none; color: #8eb1bc; } .footer_middle>.rl>div>p>a:hover{ color: #fff; } .footer_in>.footer_bottom{ color: #417aa1; /*padding-top: 35px;*/ font-size: 12px; text-align: center; margin-top: 35px; } /*底部結束*/

 

 完成之後的整體效果

 


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

-Advertisement-
Play Games
更多相關文章
  • 前言 工欲善其事,必先利其器。 在前端工作中,我們常常使用到Chrome開發者工具去做各種各樣的事情。 但是您真的瞭解這些開發者工具嗎? 官方文檔還是挺詳細的: "chrome devtools文檔" 。 但是文檔中仍然會有一些功能沒有描述到和一筆帶過。 而我的這篇指南,會略過那些一目瞭然的功能以及 ...
  • 先說一下什麼是BFC(Block Formatting Contexts) BFC:塊級格式化上下文(獨立的渲染區)。通俗的說是塊級元素佈局邏輯或規則,想要觸發BFC就要是塊級元素,要不把它轉為塊級元素(display:block;) BFC的觸發條件。 1.在html框架中就能觸發bfc,也就是一 ...
  • 概述 Promise是非同步編程的一種解決方案,比傳統的解決方案(回調函數和事件)更合理也更強大。ES6將其寫進了語言標準,統一了用法,從語法上說,Promise 是一個對象,從它可以獲取非同步操作的消息。 Promise的出現很好的解決了回調地獄的問題,在使用ES5的時候,在多層嵌套回調時,寫完的代碼 ...
  • swith根據表達式的值來case,break執行跳轉語句;迴圈就是重覆的做一件事情,for(;a<=10;)迴圈的條件可以寫在裡面也可以寫在外面,while,當條件為true,迴圈執行,do while ...
  • 繼承 程式中的繼承: 子類可以繼承父類的一些屬性和方法 super關鍵字 super關鍵字用於訪問和調用對象父類上的函數,可以通過調用父類的構造函數,也可以調用父類的普通函數 繼承的特點: 1. 繼承中,如果實例化子類輸出一個方法,先看子類有沒有這個方法,如果有就先執行子類,(就近原則) 1. 繼承 ...
  • 成品圖 成品鏈接 設置流程 博客園 → 管理 → 設置 → 博客皮膚 → SimpleMemory 頁面定製CSS代碼 禁用模板預設css不用勾選 body { background: none; } .postTitle { border-bottom: 0px solid #969696; bo ...
  • test() 方法用於檢測一個字元串是否匹配某個模式 最近遇到的某業務中進行發票抬頭的正則驗證如下: console.log(/^[a-zA-Z\u4e00-\u9fa5\s()()<>《》\(\)\-]+$/.test("中國xxxx公司七五0試驗場")) 當用戶輸入上面的公司名時報錯false, ...
  • 始終堅信閱讀和調試結合的方式,才是學習開源的高效方法 一、老版本調試 遙想當年的threejs(使用版本為r75)還沒有CommonJS,對於我這個小白可以拿起大刀大殺四方......(咳。咳。 就是拿來簡單畫個方塊啥的。。。),使用vscode簡單配置一下就可以老老實實的拜倒在我的淫威之下。這種小 ...
一周排行
    -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.數據驗證 在伺服器端進行嚴格的數據驗證,確保接收到的數據符合預期格 ...