百度前端學院|任務七

来源:https://www.cnblogs.com/caicairui/archive/2018/01/05/8206635.html
-Advertisement-
Play Games

效果: ...


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>任務七</title>
    <link rel="stylesheet" href="index.css" type="text/css">
</head>
<body>
    <div class="header">
        <img src="images/logo.png" alt="logo" class="logo">
        <span class="logo-wenzi">New World</span>
        <nav class="header-list">
            <a href="#">首頁</a>
            <a href="#">最新活動</a>
            <a href="#">項目介紹</a>
            <a href="#">愛心社區</a>
            <a href="#">關於我們</a>
            <a href="#"><img src="images/login.png" alt="login" class="login-logo"><span class="login">登錄</span></a>
        </nav>
    </div>
    <div class="content">
        <img src="images/picture1.png" alt="picture1" class="picture1"><img src="images/picture1_hidden.png" alt="圖一遮蓋圖片" class="picture1_hidden">
        <div class="content1-weizi">
            <p class="content1-weizi-one">Time of new life</p>
            <p class="content1-weizi-two">新時代,年輕的人們讓我們一起</p>
            <p class="content1-weizi-two">體驗新生活,享受新生活</p>
            <a href="#" class="content1-weizi-three">開始體驗</a>
        </div>
        <nav class="content-two clearfix">
            <div class="content-two-image">
                <img src="images/content_two-one.png" alt="content_two-one">
            </div>
            <div class="content-two-image">
                <img src="images/content_two-two.png" alt="content_two-one">
            </div>
            <div class="content-two-image">
                <img src="images/content_two-three.png" alt="content_two-one">
            </div>
            <div class="content-two-image">
                <img src="images/content_two-four.png" alt="content_two-one">
            </div>
        </nav>
        <div class="content-two-wenzi clearfix">
            <div><p>打造全新世界,讓你更愛你的生活</p></div>
            <div><p>豐富多彩的公益活動,發揮新世界的主人公意識</p></div>
            <div><p>時尚的新理念,超前體驗未知的生活</p></div>
            <div><p>完善的培養機制,培養你全新的世界觀</p></div>
        </div>
        <div class="content-three">
            <p class="content-three-title">成為我們的志願者</p>
            <div class="hr-one"></div>
            <div class="content-three-title-detail"><p>新世界的大家庭需要每一個愛生活的人加入,如果你夠年輕有夢想,有激情,那就不要猶豫快來加入我們,成為改變所有人生活的人</p></div>
            </div>
        <div class="detail clearfix">
            <div class="detail-left">
                <p class="detail-left-title">新世界志願者協議</p>
                <p class="detail-left-detail">加入新世界志願者的人員必須遵守中華人民共共和國的
                    相關法律法規,並且本著平等資源的原則 ......</p>
                <div class="more"><img src="images/jiantou.png" alt="箭頭"><a href="#">more</a></div>
                <p class="detail-left-title">新世界志願者協議</p>
                <p class="detail-left-detail">加入新世界志願者的人員必須遵守中華人民共共和國的
                    相關法律法規,並且本著平等資源的原則 ......</p>
                <div class="more"><img src="images/jiantou.png" alt="箭頭"><a href="#">more</a></div>
                <p class="detail-left-title">新世界志願者協議</p>
                <p class="detail-left-detail">加入新世界志願者的人員必須遵守中華人民共共和國的
                    相關法律法規,並且本著平等資源的原則 ......</p>
                <div class="more"><img src="images/jiantou.png" alt="箭頭"><a href="#">more</a></div>
            </div>
            <div class="detail-right clearfix">
                <input type="text" placeholder="姓名:" style="border:none;background-color: #ededef;width:
311px;height: 41px;text-indent: 20px" class="inner">
                <input type="text" placeholder="年齡:" style="border:none;background-color: #ededef;width:
311px;height: 41px;text-indent: 20px" class="inner">
                <input type="text" placeholder="聯繫方式:" style="border:none;background-color: #ededef;width:
311px;height: 41px;text-indent: 20px" class="inner">
                <input type="text" placeholder="聯繫地址:" style="border:none;background-color: #ededef;width:
311px;height: 41px;text-indent: 20px" class="inner">
                <input type="textarea" placeholder="簡述你夢想生活" style="border:none;background-color: #ededef;width:
724px;height: 177px;text-indent: 20px" class="inner">
                <input type="button" value="提交" class="btn">
            </div>
        </div>
    </div>
    <div class="footer">
        <p class="footer-title">聯繫我們</p>
        <p class="footer-detail">為了更好的獲取我們最新的產品資訊,您可以留下您的電子郵箱快速訂閱我們的產品資訊
            也可以通過以下任何方式關註我們動態</p>
        <div class="footer-email clearfix">
            <input type="text" placeholder="[email protected]" class="email">
            <input type="button" value="提交" class="btn-two">
        </div>
        <div class="footer-icon">
            <img src="images/footer-one.png" alt="QQ" class="footer-icon-inner">
            <img src="images/footer-two.png" alt="Weibo" class="footer-icon-inner">
            <img src="images/footer-three.png" alt="Facebook" class="footer-icon-inner">
            <img src="images/footer-four.png" alt="Google" class="footer-icon-inner">
        </div>
    </div>
</body>
</html>

  

/*通用*/
*{padding: 0;margin: 0;border: 0}
.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}
.clearfix{*+height:1%;}
/*header*/
.header{width: 100%;height: 56px;margin: 0;background-color: #fff;}
.logo{margin-left: 59px;margin-top: 12px}
.logo-wenzi{font-size: 26px;font-family: Verdana;color: #393a3a;font-weight: bold;margin-left: 5px;}
.header-list{float: right;margin-right: 68px;height: 56px;line-height: 56px;}
.header-list a{padding:0 32px;text-decoration: none;height: 56px;display: block;float: left;font-size: 14px;font-family: "Microsoft YaHei";color: #787b83}
.header-list a:hover{border-bottom: 5px solid #e74f4d;color: #e74f4d;box-sizing: border-box}
.login-logo{margin-right: 5px;vertical-align: middle}
.login{vertical-align: middle;color: #e74f4d}
/*content*/
.picture1{width: 100%;height: 692px}
.content{position: relative}
.picture1_hidden{width: 100%;position: absolute;left: 0;top: 0;height: 692px}
.content1-weizi{position: absolute;left: 115px;top: 231px}
.content1-weizi-one{font-size: 60px;font-family: "Microsoft YaHei";color: #fff;margin-bottom: 32px}
.content1-weizi-two{color: #fff;font-size: 21px;font-family: "Microsoft YaHei";padding-bottom: 10px;padding-left: 10px}
.content1-weizi-three{font-size: 30px;display: block;text-decoration: none;font-family: 微軟雅黑;color: #fff;text-align: center;line-height: 64px}
.content1-weizi a{height: 64px;width: 330px;margin-top: 67px;background-color: #e7504d}
.content1-weizi a:hover{border-bottom: 3px solid #fff;box-sizing: border-box}
/*content-two*/
.content-two-image{display: block;width: 25%;float: left;margin-top: 46px}
.content-two-image img{margin-left: 153px}
.content-two-wenzi div p{font-size: 14px;font-family: 黑體;color: #767777;text-align: center;padding: 0 25%}
.content-two-wenzi{margin-top: 48px}
.content-two-wenzi div{width: 25%;float: left;border-right: solid 2px #bbb;box-sizing: border-box}
.content-two-wenzi div:last-child{border: none}
/*content-three*/
.content-three{margin-bottom: 106px}
.content-three-title{font-size: 21px;font-family: 黑體;color: #323333;text-align: center;margin-top: 120px}
.hr-one{width: 30px;height: 2px;background-color: #ea6563;text-align: center;margin: 20px auto}
.content-three-title-detail{margin: 0 35%}
.content-three-title-detail p{font-size: 12px;font-family: "Microsoft YaHei";color: #aaa;text-align: center;line-height: 18px}
.detail-left{float: left;padding-left: 140px;width: 287px;}
.detail-left-title{font-size: 14px;font-family: 黑體;color: #aaa;font-weight: bold;margin-bottom: 21px}
.detail-left-detail{font-size: 12px;color: #aaa;font-family: 宋體;line-height: 21px}
.more a{font-size: 12px;line-height: 20px;color: #aaa;font-family: 宋體;margin-left: 5px;text-decoration: none;}
.more a:hover{color: #e74f4d}
.more{display: block;text-align: right;margin-bottom: 20px}
.inner{float: left;margin:0 50px 14px 50px;}
.btn{border: none;width: 724px;height: 40px;float: left;margin:0 50px 14px 50px;}
.detail-right{margin-bottom: 167px}
/*footer*/
.footer{background-color: #33363f;height: 358px}
.footer-title{font-size: 21px;color: #fff;font-family: 黑體;text-align: center;padding-top: 90px}
.footer-detail{font-size: 12px;font-family: 宋體;line-height: 18px;color: #fff;padding: 20px 30%;text-align: center}
.footer-email{margin-top: 20px;margin-left: 31%;margin-bottom: 36px}
.email{height: 41px;width: 430px;text-indent: 20px;border-style: none;}
.btn-two{height: 41px;width: 80px;border-style: none;}
.email,.btn-two{float: left;}
.footer-icon{width: 180px;margin: 0 auto;}
.footer-icon-inner{margin-right: 18px}
.footer-icon img:last-child{margin-right: 0}

  效果:

 


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

-Advertisement-
Play Games
更多相關文章
  • 其實上一篇 "《開發中關於Git那些事》" 寫的內容僅僅是Git的冰山一角,如果你認為Git就是簡簡單單的幾行命令,那隻能說明你還沒有真正瞭解Git這個強大的內容定址文件系統。這篇文章,還是接著介紹一些實用但是很少有人知曉的一些命令,好比說具有魔性的Git變基(git rebase)以及常用的GUI ...
  • javascript這門語言一直就像一位帶著面紗的美女,總是看不清,摸不透,一直專註伺服器端,也從來沒有特別重視過,直到最近幾年,javascript越來越重要,越來越通用。最近和前端走的比較近,藉此機會,好好鞏固一下相關知識點。 1.初識replace 在js中有兩個replace函數 一個是lo ...
  • javaScript調試工具console命令的使用 我最先認識到console命令是在javaScript中看到的,當時只是知道它的console.log()命令的使用,並沒有深究。後來,特意去查了下,並通過這篇博客記錄下來。 一、console是幹嘛的? 我的理解是: 在瀏覽器控制臺中顯示信息, ...
  • jQuery是一個輕量級的JavaScript庫,裡面包含所有的jQuery方法。 如果想要使用這些方法,那麼必須首先引用這個庫。 先看一段代碼: 使用$()方法獲取指定元素,然後利用hide()方法隱藏元素。要想使用這些方法,比如首先引入jQuery庫。 上面代碼引入庫的方式是: 從網路上引入jQ ...
  • 一.CSS語法: CSS語法規則由兩個部分組成: (1).選擇器:它的作用是用來匹配要應用css代碼的元素。 (2).Rules:屬性聲明語句,用來具體控制元素的表現,屬性和屬性值之間要用冒號分割。如果有多條聲明語句,那麼相互之間用分號分隔,最後一條語句後面可以省略分號。 二代碼實例: <!doct ...
  • 在HTML中,共有6個級別的標簽:<h1>~<h6>。 標題數字越小,字體就會越大,標題的級別也就越高。 標題標簽的使用對於搜索引擎優化也有著比較重要的作用,這裡就不具體介紹了。 代碼實例: ...
  • 表達式是JavaScript中的短語,那麼語句就是JavaScript的整句或者命令。 JavaScript語句是以分號結尾的(分號有時候是可以省略的,需要保持語義完整性)。 如果說表達式是人體的細胞或者軟組織的話,那麼語句就是更高層次的人體器官,它能夠完成一些較為複雜的操作,改變程式的運行狀態。復 ...
  • 通過查詢瞭解到博客園是有開發博客查詢相關的介面的,列表如下: 但是我們打開其中一個介面的話會發現提供的介面返回的是xml格式的內容,因此如果需要後臺轉發為前臺需要的格式還需要把xml轉換為json數據: 那麼我們一步一步來,首先需要Node將這個介面代理轉發為自己的介面,其實只需要express的r ...
一周排行
    -Advertisement-
    Play Games
  • 前言 本文介紹一款使用 C# 與 WPF 開發的音頻播放器,其界面簡潔大方,操作體驗流暢。該播放器支持多種音頻格式(如 MP4、WMA、OGG、FLAC 等),並具備標記、實時歌詞顯示等功能。 另外,還支持換膚及多語言(中英文)切換。核心音頻處理採用 FFmpeg 組件,獲得了廣泛認可,目前 Git ...
  • OAuth2.0授權驗證-gitee授權碼模式 本文主要介紹如何筆者自己是如何使用gitee提供的OAuth2.0協議完成授權驗證並登錄到自己的系統,完整模式如圖 1、創建應用 打開gitee個人中心->第三方應用->創建應用 創建應用後在我的應用界面,查看已創建應用的Client ID和Clien ...
  • 解決了這個問題:《winForm下,fastReport.net 從.net framework 升級到.net5遇到的錯誤“Operation is not supported on this platform.”》 本文內容轉載自:https://www.fcnsoft.com/Home/Sho ...
  • 國內文章 WPF 從裸 Win 32 的 WM_Pointer 消息獲取觸摸點繪製筆跡 https://www.cnblogs.com/lindexi/p/18390983 本文將告訴大家如何在 WPF 裡面,接收裸 Win 32 的 WM_Pointer 消息,從消息裡面獲取觸摸點信息,使用觸摸點 ...
  • 前言 給大家推薦一個專為新零售快消行業打造了一套高效的進銷存管理系統。 系統不僅具備強大的庫存管理功能,還集成了高性能的輕量級 POS 解決方案,確保頁面載入速度極快,提供良好的用戶體驗。 項目介紹 Dorisoy.POS 是一款基於 .NET 7 和 Angular 4 開發的新零售快消進銷存管理 ...
  • ABP CLI常用的代碼分享 一、確保環境配置正確 安裝.NET CLI: ABP CLI是基於.NET Core或.NET 5/6/7等更高版本構建的,因此首先需要在你的開發環境中安裝.NET CLI。這可以通過訪問Microsoft官網下載並安裝相應版本的.NET SDK來實現。 安裝ABP ...
  • 問題 問題是這樣的:第三方的webapi,需要先調用登陸介面獲取Cookie,訪問其它介面時攜帶Cookie信息。 但使用HttpClient類調用登陸介面,返回的Headers中沒有找到Cookie信息。 分析 首先,使用Postman測試該登陸介面,正常返回Cookie信息,說明是HttpCli ...
  • 國內文章 關於.NET在中國為什麼工資低的分析 https://www.cnblogs.com/thinkingmore/p/18406244 .NET在中國開發者的薪資偏低,主要因市場需求、技術棧選擇和企業文化等因素所致。歷史上,.NET曾因微軟的閉源策略發展受限,儘管後來推出了跨平臺的.NET ...
  • 在WPF開發應用中,動畫不僅可以引起用戶的註意與興趣,而且還使軟體更加便於使用。前面幾篇文章講解了畫筆(Brush),形狀(Shape),幾何圖形(Geometry),變換(Transform)等相關內容,今天繼續講解動畫相關內容和知識點,僅供學習分享使用,如有不足之處,還請指正。 ...
  • 什麼是委托? 委托可以說是把一個方法代入另一個方法執行,相當於指向函數的指針;事件就相當於保存委托的數組; 1.實例化委托的方式: 方式1:通過new創建實例: public delegate void ShowDelegate(); 或者 public delegate string ShowDe ...