css实现响应式社交微博朋友圈动态效果代码
代码语言:html
所属分类:响应式
代码描述:css实现响应式社交微博朋友圈动态效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.5.1.css">
<style>
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Ms+Madi&family=Satisfy&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
*:focus {
outline: none;
}
.logo {
font-family: "Ms Madi", cursive;
font-weight: 600;
font-style: normal;
font-size: 2rem;
}
body {
width: 100%;
background: #fafafa;
position: relative;
font-family: "roboto", sans-serif;
}
.navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 50px;
background: #fff;
border-bottom: 1px solid #dfdfdf;
display: flex;
justify-content: center;
padding: 5px 0;
}
.nav-wrapper {
width: 70%;
max-width: 1000px;
height: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}
.brand-img {
height: 100%;
margin-top: 5px;
}
.search-box {
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 200px;
height: 25px;
background: #fafafa;
border: 1px solid #dfdfdf;
border-radius: 2px;
color: rgba(0, 0, 0, 0.5);
text-align: center;
text-transform: capitalize;
}
.search-box::placeholder {
color: rgba(0, 0, 0, 0.5);
}
.nav-items {
height: 22px;
position: relative;
}
.icon {
height: 100%;
cursor: pointer;
margin: 0 10px;.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0