当前位置:网站首页>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;
}

边栏推荐
- Usage of in in SQL DQL query
- Acwing 866. determining prime numbers by trial division
- After 2 years of functional testing, I feel like I can't do anything. Where should I go in 2022?
- Div drag effect
- 数据库进阶·如何针对所有用户数据中没有的数据去加入随机的数据-蜻蜓Q系统用户没有头像如何加入头像数据-优雅草科技kir
- Virtual memory and disk
- Output Yang Hui triangle with two-dimensional array
- JSP novice
- ML-Numpy
- Playwright tutorial (II) suitable for Xiaobai
猜你喜欢

4day

6-18 vulnerability exploitation - backdoor connection

Wechat card issuing applet source code - automatic card issuing applet source code - with flow main function
![[go basics 02] the first procedure](/img/af/f32762a828f384bf6aa063ebf959aa.png)
[go basics 02] the first procedure

Wet- a good choice for people with English difficulties - console translation

The dragon lizard exhibition area plays a new trick this time. Let's see whose DNA moved?

Redis foundation 2 (notes)

『SignalR』.NET使用 SignalR 进行实时通信初体验

Use of hyperlinks

还不懂mock测试?一篇文章带你熟悉mock
随机推荐
Having met a tester with three years' experience in Tencent, I saw the real test ceiling
Summary of function test points of wechat sending circle of friends on mobile terminal
3dslicer importing medical image data
How to resolve a domain name to multiple IP addresses?
vim用法记录
6-18 vulnerability exploitation - backdoor connection
Smart S7-200 PLC channel free mapping function block (do_map)
Common source code for ArcGIS development
Use of hyperlinks
Leetcode 106. 从中序与后序遍历序列构造二叉树
D3.js 学习
完啦,上班三个月,变秃了
突破性思维在测试工作中的应用
Virtual memory and disk
Victoriametrics single node of kubernetes
arcgis开发常用源码
字节跳动技术面都过了,结果还是被刷了,问HR原因竟是。。。
3dslicer introduction and installation tutorial
Jenkins+svn configuration
Get together for ten years, tell your story, millions of gifts are waiting for you