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

边栏推荐
- C language: random generated number + selective sorting
- 谷歌分析UA怎么转最新版GA4最方便
- Imitation Tiktok homepage interface
- Wechat official account application development (I)
- Redis memory elimination mechanism?
- 测试工作不受重视,你换位思考了吗?
- 如何将一个域名解析到多个IP地址?
- xxl-job中 关于所有日志系统的源码的解读(一行一行源码解读)
- D3.js 学习
- 数学规划分类 Math Programming Classfication
猜你喜欢

Randomly generate 10 (range 1~100) integers, save them to the array, and print the array in reverse order. And find the average value, the maximum value and the subscript of the maximum value, and fin

6-18 vulnerability exploitation - backdoor connection

Xiaobai programmer's fourth day
![[C syntax] void*](/img/34/b29b7bbf8eae9f1730352cac1301a4.png)
[C syntax] void*

Nuclear power plants strive to maintain safety in the heat wave sweeping Europe

SQL中in的用法 DQL 查询

2day

还不懂mock测试?一篇文章带你熟悉mock

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

在腾讯干软件测试3年,7月无情被辞,想给划水的兄弟提个醒...
随机推荐
访问者模式(visitor)模式
Whether the five distribution methods will produce internal fragments and external fragments
Flex layout
Interpretation of the source code of all logging systems in XXL job (line by line source code interpretation)
Title: give a group of arrays, arranged from large to small and from small to large.
Call of addition, subtraction, multiplication and division of integer type only
SQL基本语句 DQL select与提取 DML插入删除
Win10 set up a flutter environment to step on the pit diary
Redis foundation 2 (notes)
Unity performance optimization direction
面了个腾讯三年经验的测试员,让我见识到了真正的测试天花板
How is it most convenient to open an account for stock speculation? Is it safe for online account managers to open an account
Don't know mock test yet? An article to familiarize you with mock
【数据库学习】Redis 解析器&&单线程&&模型
[go basics 02] the first procedure
SMART S7-200 PLC通道自由映射功能块(DO_Map)
Math programming classification
Div drag effect
arcgis开发常用源码
『SignalR』. Net using signalr for real-time communication