当前位置:网站首页>Xiaobai programmer's seventh day
Xiaobai programmer's seventh day
2022-07-25 22:20:00 【Too difficult L】
HTML Traditional layout
html file
<!DOCTYPE html>
<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>H5 Layout </title>
<link rel="stylesheet" href="./index.css">
<style>
body{
background-color: #C94154;
width: 850px;
height: 900px;
margin: 0px auto;
}
header{
width: 800px;
height: 50px;
background-color: white;
margin: 50px auto 0px auto;
}
nav{
width: 800px;
height: 50px;
background-color: white;
border-top: 2px #ccc solid;
margin: 0px auto;
}
section{
color: black;
width: 800px;
height: 400px;
background-color: white;
margin: 20px auto;
}
footer{
width: 800px;
height: 50px;
background-color: white;
margin: 0px auto;
}
aside{
width: 330px;
height: 330px;
background-color: #4F4E4F;
float: left;
margin: 50px 5px 20px 20px;
}
article{
width: 410px;
height: 330px;
background-color: #4F4E4F;
float: right;
margin: 50px 20px 20px 5px;
}
hgroup{
width: 360px;
height: 40px;
background-color: #C94154;
margin: 50px auto 15px;
}
article>.p1{
width: 360px;
height: 150px;
background-color: #C94154;
margin: 0px auto;
}
article>.p2{
width: 360px;
height: 40px;
background-color: #C94154;
margin: 15px auto;
}
</style>
</head>
<body>
<header></header>
<nav></nav>
<section>
<aside></aside>
<article>
<hgroup> </hgroup>
<p class="p1"> </p>
<p class="p2"> </p>
</article>
</section>
<footer>
</footer>
</body>
</html>
css file
/* Remove default style */
* {
padding: 0;
margin: 0;
}
a {
text-decoration: none;
}
li{
list-style: none;
}
a:hover {
color: red !important;
}
/* Set the overall style */
#wrap {
width: 340px;
height: 350px;
/* background-color: pink; */
border-top: 3px solid #ccc;
margin: 50px auto;
}
#wrap >h2{
line-height: 2;
display: inline-block;
border-top: 3px solid red;
margin-top: -3px;
}
#wrap >h2>a{
color: black;
}
/* Set pictures */
.pic{
width: 100%;
height:165px ;
overflow: hidden;
}
.pic>img{
width: 100%;
height: 100%;
}
.pic>img:hover{
transform: scale(1.1);
}
.pic>img:hover+p{
transform: scale(1);
}
.pic>p{
/* background-color: red; */
/* background-color: rgba(0, 0, 0, .5); */
color: #fff;
margin-top: -40px;
margin-left: 30px;
}
#wrap>ul{
/* margin-left: 20px; */
margin-top: 15px;
}
#wrap>ul>li{
line-height: 2;
/* list-style: square;
color: #888788; */
width: 100%;
white-space: nowrap;
text-overflow: ellipsis;
/* background-color: royalblue; */
overflow: hidden;
}
#wrap>ul>li::before{
content: '';
display: inline-block;
width: 5px;
height: 5px;
margin-right: 10px;
background-color:#888788 ;
}
#wrap>ul>li>a{
color: #888788;
font-size: 14px;
}
#wrap>ul>li>a:hover{
color: red;
}

边栏推荐
- ML-Numpy
- JSP nine built-in objects
- Don't know mock test yet? An article to familiarize you with mock
- Synchronized and volatile
- Common source code for ArcGIS development
- 三菱FX PLC自由口RS指令实现MODBUS通讯
- Internship: writing common tool classes
- How to resolve a domain name to multiple IP addresses?
- Solutions to the failure of win key in ikbc keyboard
- xxl-job中 关于所有日志系统的源码的解读(一行一行源码解读)
猜你喜欢

Title: give a group of arrays, arranged from large to small and from small to large.

成为比开发硬气的测试人,我都经历了什么?

别投了,软件测试岗位饱和了...

如何实现一个App应用程序,限制用户时间使用?

Smart S7-200 PLC channel free mapping function block (do_map)

What have I experienced to become a harder tester than development?

如何将一个域名解析到多个IP地址?

Arcgis10.2 configuring postgresql9.2 standard tutorial

Selenium basic use and use selenium to capture the recruitment information of a website (continuously updating)

Fill the whole square with the float property
随机推荐
[C syntax] void*
Redis foundation 2 (notes)
在进行自动化测试,遇到验证码的问题,怎么办?
ML-Numpy
Summary of function test points of wechat sending circle of friends on mobile terminal
[test development methodology] experience of test development platform PK - choice
聚名十年,说出你的故事,百万豪礼等你拿
SMART S7-200 PLC通道自由映射功能块(DO_Map)
Why does redisv6.0 introduce multithreading?
Why does redis choose single thread?
Wet- a good choice for people with English difficulties - console translation
Minor GC 和 Full GC 有什么不同呢?
6-18 vulnerability exploitation - backdoor connection
数据库进阶·如何针对所有用户数据中没有的数据去加入随机的数据-蜻蜓Q系统用户没有头像如何加入头像数据-优雅草科技kir
internship:普通常用的工具类编写
MySQL --- 子查询 - 列子查询(多行子查询)
Usage of in in SQL DQL query
The third day of Xiaobai programmer
What is redis? Briefly describe its advantages and disadvantages
D3.js 学习