这只是一个简简单单的网页设计😎
(网站所需的服务器、域名以及各种手续我都办好了)
最后的两张图对比之后就知道没有拓展屏,效率下降了许多😒😒😓😓😔😔
/*导航栏*/
.top-bar {
height: 80px;
width: 100%;
top: 0;
left: 0;
position: fixed;
display: flex;
z-index: 2001;
margin: 5px;
font-size: 23px;
/* 字体粗细,400相当于normal */
font-weight: 400;
color: #222226;
background-color: #fff;
}
.box-top {
width: 100%;
/* 最小宽度,窗口缩小之后到1280px不会再缩小 */
min-width: 1280px;
box-sizing: border-box;
padding: 0 24px;
margin: 0 auto;
line-height: 60px;
display: flex;
justify-content: space-between;
-webkit-box-pack: justify;
/* 阴影 水平阴影距离,垂直阴影距离, 模糊尺寸, 阴影尺寸 颜色*/
box-shadow:0 2px 4px 0 rgb(0, 0, 0,5%);
}
.box-top-left {
flex: none;
width: 15%;
background-color: rgba(255,255,255,0.5);
}
.box-top-middle {
width: 84%;
background-color: rgba(255,255,255,0.5);
padding: 25px;
}
.box-top-right {
width: 6%;
min-width: 200px;
background-color: rgba(255,255,255,0.5);
padding: 18px;
}
.box-top-left a{
height: 100%;
/* 当箭头鼠标移到会变成手式鼠标 */
cursor: pointer;
}
.box-top-left img{
bottom: auto;
}
.top-ui-middle a{
color: black;
text-decoration: none;//下划线;
}
.top-ui-middle {
width: 100%;
min-width: 800px;
margin: 0;
padding: 0;
}
.top-ui-middle li{
width:10%;
min-width: 20px;
margin:-5px 50px 0 20px;
float: left;
align-content: center;
justify-content: center;
display: block;
white-space: nowrap;
}
.top-ui-right a{
padding: 10px;
color: black;
text-decoration: none;//下划线;
}
.top-ui-right button{
width: 50px;
height: 50px;
border-radius: 50%;
}
/*整体页面*/
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
header, section {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
text-align: center;
color: #333333;
}
header {
/*background-color: #F00;*/
}
section {
/*background-color: #00F;*/
}
h1 {
font-size: 3rem;
margin-bottom: 2rem;
}
p {
font-size: 1.5rem;
}
img {
max-width: 100%;
height: auto;
margin: 2rem 0;
}
声明:文中观点不代表本站立场。本文传送门:https://eyangzhen.com/206905.html