当前位置:网站首页>Comprehensively design an oppe homepage -- layout and initialization
Comprehensively design an oppe homepage -- layout and initialization
2022-07-26 16:19:00 【(-^_^-)】
First, create a site folder -- Save all the information of the web page

id Make page layout class Make the style of the page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OPPO</title>
</head>
<body>
<!-- At the top of the page -->
<div id="top"></div>
<!-- The head of the page -->
<div id="header"></div>
<!-- The navigation bar of the page -->
<div id="nav"></div>
<!-- Page banner -->
<div id="banner"></div>
<!-- The star model part of the page -->
<div id="star"></div>
<!-- Selected accessories of the page -->
<div id="accessory"></div>
<!-- Search elements of the page opple part -->
<div id="world"></div>
<!-- The service part of the page -->
<div id="service"></div>
<!-- After sales service of the page -->
<div id="alter_sale"></div>
<!-- Bottom of page -->
<div id="footer"></div>
</body>
</html>Initialize style
/* Initialize style */
/* Reset the default style */
*{
padding: 0;
margin: 0;
}
/* Clear the flag at the front of the list */
ol,ul{
style="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;
}
Create style ( Every part ( altogether 10 Parts of ) Design a common style )
<!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"></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{
style="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;
}
.container{
width: 1280px;
border: 1px solid #f00;
margin: 0 auto; /* The content part is centered */
}
边栏推荐
- Technology vane | interpretation of cloud native technology architecture maturity model
- Pat grade a 1044 shopping in Mars
- Sql语句——单行注释与多行注释
- 阿里云DMS MySQL云数据库建表报错,求解!!
- PAT甲级 1044 Shopping in Mars
- [RCTF2015]EasySQL
- 想让照片中的云飘起来?视频编辑服务一键动效3步就能实现
- 初识OpenGL (3)片段着色器(Fragment Shader)
- The "nuclear bomb level" log4j vulnerability is still widespread and has a continuing impact
- 提问征集丨快来向NLLB作者提问啦!(智源Live第24期)
猜你喜欢

ACL-IJCAI-SIGIR顶级会议论文报告会(AIS 2022)笔记3:对话和生成

Sql语句——单行注释与多行注释

spark-streaming状态流之mapWithState

We were tossed all night by a Kong performance bug

Parker solenoid valve d1vw020dnypz5

vscode批量删除

Technology vane | interpretation of cloud native technology architecture maturity model

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

Pat grade a 1044 shopping in Mars

Delta controller rmc200
随机推荐
Bugku login1
SQL statement -- single line comment and multi line comment
Test cases should never be used casually, recording the thinking caused by the exception of a test case
Pat class a 1047 student list for course
PAT甲级 1050 String Subtraction
最终一致性性分布式事务 TCC
[arm learning (9) ARM compiler understanding learning (armcc/armclang)]
初识OpenGL (4)链接着色器
The "nuclear bomb level" log4j vulnerability is still widespread and has a continuing impact
C# 给Word每一页设置不同文字水印
The difference between oncreate and onrestoreinstancestate recovery data of activity
请问一下各位大佬,mysql-cdc建表如何指定表的字符集呢,在官网没找到相应的连接器参数。我读一个
Google Earth Engine——MERRA-2 M2T1NXSLV:1980-至今全球压力、温度、风等数据集
Selection of industrial serial port to WiFi port to Ethernet module of Internet of things
Clojure 运行原理之字节码生成篇
Modify the password of the root user of MySQL database
物联网工业级串口转WiFi转网口转以太网模块的选型
朋友圈如何测试(思维导图)
I would like to ask you guys, how to specify the character set of MySQL CDC tables? I can't find the corresponding connector parameters on the official website. I read one
Question collection come and ask nllb authors! (Zhiyuan live issue 24)