RWD原理與應用-實作手機版面-模仿fb帳號頁面桌

What is a rwd原理與應用-實作手機版面-模仿fb帳號頁面桌 How do you make a rwd原理與應用-實作手機版面-模仿fb帳號頁面桌? This script and codes were developed by Eric on 02 January 2022, Sunday.

How do I make an rwd原理與應用-實作手機版面-模仿fb帳號頁面桌?
  1. RWD原理與應用-實作手機版面-模仿fb帳號頁面桌 Previews
  2. RWD原理與應用-實作手機版面-模仿fb帳號頁面桌 HTML Codes
  3. RWD原理與應用-實作手機版面-模仿fb帳號頁面桌 CSS Codes
RWD原理與應用-實作手機版面-模仿fb帳號頁面桌 Previews

RWD原理與應用-實作手機版面-模仿fb帳號頁面桌 HTML Codes

<!DOCTYPE html>
<html >
<head>
  <meta charset="UTF-8">
  <title>RWD原理與應用-實作手機版面-模仿fb帳號頁面桌面/手機板變化 </title>
  
  
  <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css'>
<link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Lato:100,300,400,700,700i,900'>

      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>
  
<div class="container">
  <div class="topbar"><img class="icon" src="http://www.freeiconspng.com/uploads/images-facebook-f-logo-png-transparent-background-page-2-29.png"/>
    <input placeholder="搜尋人、地點、事物..."/>
  </div>
  <div class="cover"></div>
  <div class="midbar">
    <div class="personimg">
      <div class="names">
        <h2 class="chtname">艾瑞克</h2>
        <h5 class="engname">(Eric Yang)</h5>
      </div>
    </div>
  </div>
  <div class="bottombar">
    <p><i class="fa fa-cogs"></i><span>努力學習前端技能中<br></span><i class="fa fa-paint-brush"></i><span>前端美術設計師<br></span><i class="fa fa-university"></i><span>畢業於數位媒體設計學系<br></span><i class="fa fa-address-card-o"></i><span>現居新北市</span></p>
  </div>
</div>
  
  
</body>
</html>

RWD原理與應用-實作手機版面-模仿fb帳號頁面桌 CSS Codes

@charset "UTF-8";
* {
  font-family: "Lato", sans-serif, 微軟正黑體;
  vertical-align: middle;
  position: relative;
}

html, body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  background-color: #E9EBEE;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
}

.topbar {
  height: 50px;
  background-color: #3B5998;
}
.topbar .icon {
  height: 30px;
  margin: 10px;
}
.topbar input {
  width: 300px;
  height: 30px;
  margin: 10px;
  margin-left: 0;
  padding-left: 10px;
  border-radius: 5px;
  border: none;
}

.cover {
  height: 330px;
  background-image: url("https://d1dxkp3em4hfhe.cloudfront.net/wp-content/uploads/NationalTaiwanUniversity_A_01.jpg");
  background-position: center center;
}

.midbar {
  height: 50px;
  background-color: #fff;
}
.midbar .personimg {
  width: 150px;
  height: 150px;
  background-image: url("http://petdogcat.net/archives/ducks01c.jpg");
  background-size: cover;
  border: 4px solid #FFF;
  position: absolute;
  top: -130px;
  left: 20px;
}
.midbar .personimg .names {
  position: absolute;
  right: -130px;
  top: 50%;
  transform: translateY(-50%);
  color: #FFF;
}
.midbar .personimg .names h2, .midbar .personimg .names h5 {
  margin: 0;
  padding: 2px;
}
.midbar .personimg .names h2 {
  font-size: 30px;
}
.midbar .personimg .names h5 {
  font-size: 16px;
}

.bottombar {
  width: 35%;
  min-width: 300px;
  padding: 20px;
  font-size: 14px;
  line-height: 25px;
  margin-top: 10px;
  background-color: #fff;
  color: #555;
}
.bottombar i {
  width: 20px;
}

@media screen and (max-width: 800px) {
  .topbar {
    height: 60px;
  }
  .topbar .icon {
    height: 40px;
  }
  .topbar input {
    width: calc( 100% - 40px - 60px );
    background-color: #2d4373;
    color: #FFF;
  }

  .midbar {
    height: 110px;
  }
  .midbar .personimg {
    width: 160px;
    height: 160px;
    left: 50%;
    transform: translateX(-50%);
  }
  .midbar .personimg .names {
    right: initial;
    left: 50%;
    top: 110%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: #555;
    text-align: center;
  }
  .midbar .personimg .names h2, .midbar .personimg .names h5 {
    padding: 0;
  }

  .bottombar {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }
  .bottombar p {
    border-top: 1px solid #a2a2a2;
    padding: 10px;
    font-size: 12px;
  }
}
Do you want hide your ip address?Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup.