效果展示  HTML+CSS实现信用卡UI设计!!附源码!!

HTML+CSS实现信用卡UI设计!!附源码!!HTML+CSS实现信用卡UI设计!!附源码!!
 

完整源码

HTML
<!DOCTYPE html><!-- Coding by CodingLab | www.codinglabweb.com--><html lang="en">  <head>    <meta charset="UTF-8" />    <meta http-equiv="X-UA-Compatible" content="IE=edge" />    <meta name="viewport" content="width=device-width, initial-scale=1.0" />    <title>信用卡Ui设计</title>    <link rel="stylesheet" href="css/style.css" />  </head>  <body>    <div class="container">      <header>        <span class="logo">          <img src="img/logo.png" alt="" />          <h5>Master Card</h5>        </span>        <img src="img/chip.png" alt="" class="chip"/>      </header>            <div class="card-details">        <div class="name-number">          <h6>Card Number</h6>          <h5 class="number">2025 1020 2025 1020</h5>          <h5 class="name">Prem Kumar Shahi</h5>        </div>        <div class="valid-date">          <h6>Valid Thru</h6>          <h5>05/28</h5>        </div>      </div>    </div>  </body></html>
HTML+CSS实现信用卡UI设计!!附源码!!
CSS
/* Import Google Font - Poppins */@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");* {  margin0;  padding0;  box-sizing: border-box;  font-family"Poppins", sans-serif;}body {  min-height100vh;  display: flex;  align-items: center;  justify-content: center;  background#e3f2fd;}.container {  position: relative;  background-imageurl("../img/bg.png");  background-size: cover;  padding25px;  border-radius:28px;  max-width380px;  width100%;  box-shadow0 5px 10px rgba(0000.1);}header,.logo{  display: flex;  align-items: center;  justify-content: space-between;}.logo img {  width48px;  margin-right10px;}h5 {  font-size16px;  font-weight400;  color#fff;}header .chip {  width60px;}h6 {  color#fff;  font-size10px;  font-weight400;}h5.number {  margin-top4px;  font-size18px;  letter-spacing1px;}h5.name {  margin-top20px;}.container .card-details{  margin-top40px;  display: flex;  justify-content: space-between;  align-items: flex-end;}