当前位置:网站首页>Comprehensively design an oppe homepage -- the design of the top and head
Comprehensively design an oppe homepage -- the design of the top and head
2022-07-26 16:19:00 【(-^_^-)】
Top :

Head : View requirements -- Observe whether the page header is divided up and down or left and right , It's obviously left and right
The left is divided into 3 smaller part Right point 5 smaller part
Check the size of the picture And offset :


Put the mouse on it and it will show green 
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>OPPO</title>
</head>
<body>
<!-- At the top of the page -->
<div id="top">
<div class="container"></div>
</div>
<!-- The head of the page -->
<div id="header">
<div class="container">
<!-- There are three items on the left -->
<!-- /* Realize the whole float */ -->
<div class="header_left left">
<div class="xlwb"></div>
<div class="txwb"></div>
<div class="tel">4001-666-888</div>
</div>
<!-- The same style on the right is different The list fits a little There are five -->
<ul class="right">
<li><a href="#"> Sign in </a></li>
<li><a href="#"> register </a></li>
<li><a href="#"> Redeem points </a></li>
<li><a href="#"> Help center </a></li>
<li class="shop_car">
<span></span>
<a href="#"> The shopping cart </a>
</li>
</ul>
</div>
</div>
<!-- The navigation bar of the page -->
<div id="nav">
<div class="container"></div>
</div>
<!-- Page banner -->
<div id="banner">
<div class="container"></div>
</div>
<!-- The star model part of the page -->
<div id="star">
<div class="container"></div>
</div>
<!-- Selected accessories of the page -->
<div id="accessory">
<div class="container"></div>
</div>
<!-- Search elements of the page opple part -->
<div id="world">
<div class="container"></div>
</div>
<!-- The service part of the page -->
<div id="service">
<div class="container"></div>
</div>
<!-- After sales service of the page -->
<div id="alter_sale">
<div class="container"></div>
</div>
<!-- Bottom of page -->
<div id="footer">
<div class="container"></div>
</div>
</body>
</html>
/* Initialize style */
/* Reset the default style */
*{
padding: 0;
margin: 0;
}
/* Clear the flag at the front of the list */
ol,ul{
list-style-type: none;
}
/* Clear the default style of hyperlinks */
a{
color: #666;/* gray */
text-decoration: none;/* Remove underscores */
}
/* Write left and right floats in the class */
.left{
float: left;
}
.right{
float: right;
}
/* Test part */
#top,#header,#nav,#banner,#star,#accessory,#world,#service,#alter_sale,#footer{
height: 100px;
width: 100%;
border: 1px solid #000;
}
/* The top style of the page */
#top{
height: 5px;
background-color: #00925f;
}
/* Page header style */
#header{
height: 30px;
background-color: #2d2d2d;
}
#header .xlwb{
width: 22px;
height: 19px;
background: url("../img/icons.png") no-repeat -48px -98px; /* Offset it */
}
#header .txwb{
width: 17px;
height: 24px;
background: url("../img/icons.png") no-repeat -28px -93px; /* Offset it */
}
#header .tel{
color: #17925f;
font-size: 14px;
}
/* Implement one line display float */
#header .header_left div{
float: left;
margin:6px 10px 0px;
}
#header ul li{
float: left;
line-height: 30px;
}
#header li a{
color: #b2b2b2;
font-size: 14px;
border-right: 1px solid #b2b2b2;
padding:0px 10px;/* The distance between the text and the border */
}
#header li a:hover{
color: #00925f;
}
#header .shop_car span{
width: 19px;
height: 16px;
margin-left: 10px;
display: inline-block;
/* span It's an in-line element Cannot set inline width Change the display mode */
background: url("../img/icons.png") no-repeat 0px -96px;
}
#header .shop_car a{
border: none;
}
.container{
width: 1280px;
border: 1px solid #f00;
margin: 0 auto; /* The content part is centered */
}边栏推荐
- 辨析 Ruby 中的 Method 与 Proc
- Development daily summary (11): file upload function improvement: Chinese character detection and text content processing
- Bugku login2
- 基于sisotool极点配置PI参数及基于Plecs的三相电压源逆变器仿真
- Taishan Office Technology Lecture: the zoom ratio of word is slightly different from the display
- Pat grade a 1048 find coins
- PAT甲级 1044 Shopping in Mars
- Mapwithstate of spark streaming state flow
- 基于NoCode构建简历编辑器
- Robot hand eye calibration ax=xb (eye to hand and eye in hand) and plane nine point calibration
猜你喜欢

Implementation of SAP ABAP daemon
![[BJDCTF2020]Easy MD5](/img/6a/61a4b5624c33f1f334bea344cfa2c8.png)
[BJDCTF2020]Easy MD5

Pat class a 1047 student list for course

Bucher gear pump qx81-400r301

Bugku login2

Technology vane | interpretation of cloud native technology architecture maturity model

提问征集丨快来向NLLB作者提问啦!(智源Live第24期)

Pat grade a 1049 counting ones

Botu PLC Sequential switch function block (SCL)

spark-streaming状态流之mapWithState
随机推荐
Comprehensively design an oppe homepage -- Design of star models
First knowledge of OpenGL (3) fragment shader
Understanding weight sharing in convolutional neural networks
终于有人把红蓝对抗讲明白了
可信隐私计算框架“隐语”开源专家观点集锦
Class initialization mechanism of JVM
FTP protocol
阿里云DMS MySQL云数据库建表报错,求解!!
Compiler analysis of clojure operation principle
PAT甲级 1050 String Subtraction
Draw a beautiful outline of the middle school playground and generate longitude and latitude data
A coal mine in Yangquan, Shanxi Province, suffered a safety accident that killed one person and was ordered to stop production for rectification
HaWe screw cartridge check valve RK4
Internet Protocol
6种方法帮你搞定SimpleDateFormat类不是线程安全的问题
Clojure Web 开发-- Ring 使用指南
辨析 Ruby 中的 Method 与 Proc
Bugku login2
提问征集丨快来向NLLB作者提问啦!(智源Live第24期)
PAT甲级 1044 Shopping in Mars