当前位置:网站首页>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 */
}边栏推荐
- PAT甲级 1047 Student List for Course
- What is GPIO and what is its use
- JVM 的类初始化机制
- Sword finger offer special assault edition day 11
- 提问征集丨快来向NLLB作者提问啦!(智源Live第24期)
- Technology vane | interpretation of cloud native technology architecture maturity model
- Internet Protocol
- 绘制漂亮的中学操场轮廓,生成带经纬度数据
- 剑指offer专项突击版第11天
- 辨析 Ruby 中的 Method 与 Proc
猜你喜欢

Parker solenoid valve d1vw020dnypz5

基于sisotool极点配置PI参数及基于Plecs的三相电压源逆变器仿真

2022年最新北京建筑安全员模拟题库及答案

Google Earth engine - merra-2 m2t1nxaer: aerosol daily data set from 1980 to 2022

SQL statement -- single line comment and multi line comment

Linux Installation mysql8.0.29 detailed tutorial

Botu PLC Sequential switch function block (SCL)

Pandora IOT development board learning (RT thread) - Experiment 17 esp8266 experiment (learning notes)

“核弹级” Log4j 漏洞仍普遍存在,并造成持续影响

Technology vane | interpretation of cloud native technology architecture maturity model
随机推荐
Specific practice cases of "card note taking method" in Siyuan
ZABBIX 6.2.0 deployment
Question collection come and ask nllb authors! (Zhiyuan live issue 24)
Selection of industrial serial port to WiFi port to Ethernet module of Internet of things
First knowledge of OpenGL (2) compilation shaders
PAT甲级 1050 String Subtraction
PAT甲级 1049 Counting Ones
基于NoCode构建简历编辑器
Bugku login2
Draw a beautiful outline of the middle school playground and generate longitude and latitude data
互联网协议
Happy 10th birthday, clojure
PAT甲级1048 Find Coins
研发效能的道与术 - 道篇
Trends in software testing tools in 2021
Class initialization mechanism of JVM
Pat grade a 1044 shopping in Mars
Understanding weight sharing in convolutional neural networks
绘制漂亮的中学操场轮廓,生成带经纬度数据
十周岁生日快乐,Clojure