项目成果
刚刚开始认真学习前端,用来练练手。。
不得不说前端学起来好像挺简单的,但实现的时候调起来真的麻QAQ,一些强迫症(悲)
Code
bilibili_card.html
<!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>bilibli</title>
<link rel="stylesheet" href="./static/css/style1.css" />
</head>
<body>
<div class="user-card">
<div class="user-card-head"></div>
<div class="user-card-body">
<div class="user-card-body-left">
<img src="./static/images/logo.jpg" alt="" />
</div>
<div class="user-card-body-right">
<div class="user-card-body-text">
<div class="user-card-body-text-username">
<a href="https://www.acwing.com/user/myspace/index/118375/">yume</a> <span>LV6</span>
</div>
<div class="user-card-body-text-reputation">
<span class="user-card-body-text-reputation-item">
<span>197</span>
<span>关注</span>
</span>
<span class="user-card-body-text-reputation-item">
<span>5</span>
<span>粉丝</span>
</span>
<span class="user-card-body-text-reputation-item">
<span>99</span>
<span>赞</span>
</span>
</div>
</div>
<div>
<div class="user-card-body-sign">这里是签名desi~</div>
</div>
<div class="user-card-body-button">
<button>+关注</button>
<button>发消息</button>
</div>
</div>
</div>
</div>
</body>
</html>
style1.css
.user-card {
width: 366px;
height: 270px;
box-shadow: 2px 2px 5px lightgray;
border-radius: 5px;
}
.user-card-head {
background-image: url("/practice/static/images/myphoto.jpg");
background-size: cover;
width: 100%;
height: 85px;
}
.user-card-body {
height: calc(100% - 85px);
width: 100%;
padding: 12px 20px 0px 0px;
/* padding-top: 12px;
padding-bottom: 12px; */
box-sizing: border-box; /*防止加上padding后撑大盒子模型*/
}
.user-card-body img {
width: 49px;
height: 49px;
border-radius: 50%;
margin-top: 5px;
}
.user-card-body-left {
width: 70px;
height: 100%;
float: left;
/* background-color: wheat; */
text-align: center;
}
.user-card-body-right {
width: calc(100% - 70px);
height: 100%;
float: left;
/* background-color: lightblue; */
}
.user-card-body-text {
width: 100%;
height: 40%;
}
.user-card-body-text-username > a {
padding-left: 5px;
box-sizing: border-box; /*防止加上padding后撑大盒子模型*/
margin-top: 5px;
font-size: 16px;
font-weight: bold;
color: rgb(252, 114, 153);
text-decoration: none;
}
.user-card-body-text-username > span {
font-size: 12px;
padding-left: 5px;
color: rgb(240, 76, 73);
font-weight: bold;
font-style: italic;
}
.user-card-body-text-reputation {
padding-top: 8px;
padding-left: 5px;
box-sizing: border-box;
}
.user-card-body-text-reputation-item {
margin-right: 20px;
}
.user-card-body-text-reputation-item > span:nth-child(1) {
font-size: 12px;
color: #18191c;
font-weight: 500;
}
.user-card-body-text-reputation-item > span:nth-child(2) {
font-size: 12px;
color: #9499a0;
}
.user-card-body-text-reputation-item > span:nth-child(2):hover {
font-size: 12px;
color: #00aeec;
transition: all 300ms; /*动画效果300ms展示*/
cursor: pointer; /*鼠标悬浮时为小手形状*/
}
.user-card-body-button > button {
width: 100px;
height: 30px;
border-radius: 4px;
margin: 0px 8px 0px 0px;
font-size: 14px;
}
.user-card-body-button {
padding-left: 5px;
margin-top: 16px;
}
.user-card-body-button > button:hover {
cursor: pointer;
}
.user-card-body-button > button:nth-child(1) {
color: #ffffff;
background-color: #00a1d6;
border: none;
}
.user-card-body-button > button:nth-child(1):hover {
background-color: rgb(51, 180, 222);
transition: all 300ms;
border: none;
}
.user-card-body-button > button:nth-child(2) {
color: #61666d;
border: 1px solid #ccd0d7;
background-color: transparent;
}
.user-card-body-button > button:nth-child(2):hover {
color: #00aeec;
border-color: #00aeec;
transition: all 0.3s;
}
.user-card-body-sign {
width: 100%;
line-height: 16px;
max-height: 4em;
font-size: 12px;
color: #9499a0;
padding-left: 5px;
padding-bottom: 10px;
box-sizing: border-box; /*防止加上padding后撑大盒子模型*/
/*防止签名溢出*/
overflow: hidden;
text-overflow: ellipsis;
}
大佬你好我想问一下如何系统的学习前端知识,就是从哪里开始学,现在比较迷茫
其实我也是刚刚开始学前端,对未来的方向也很迷茫ε=(´ο`*)))唉,边学边忘比较多(悲),所以我可能也说不出什么好点子QAQ,不过我学习前端的话是先学HTML和CSS一些常用的标签与语法,然后再在实践中遇到不懂的就边查边用的,因为忘记的情况比较多,所以重复工作(做无用功)做得比较多,虽然看起来是浪费时间,但是自己还是有所收获的。学完这两件后学JS和一些框架一步一步来就好了。
请问一下 前端是跟谁学习的
可以像y总说的那样边学边查就好了,毕竟前端知识很杂,学了很容易忘记(指我QAQ)