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; display: inline-block; } .user-profile { width: 22px; border-radius: 50%; background-image: url(//repo.bfw.wiki/bfwrepo/image/5d653b5271e3b.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90); background-size: cover; } .main { width: 100%; padding: 10px 0; display: flex; justify-content: center; margin-top: 50px; } .wrapper { width: 70%; max-width: 1000px; display: grid; grid-template-columns: 60% 40%; grid-gap: 20px; } .left-col { display: flex; flex-direction: column; } .status-wrapper { width: 100%; height: 120px; //background: #fff; //border: 1px solid #dfdfdf; border-radius: 2px; padding: 10px; padding-right: 0; display: flex; align-items: center; overflow: hidden; overflow-x: auto; } .status-wrapper::-webkit-scrollbar { display: none; } .status-card { flex: 0 0 auto; width: 80px; max-width: 80px; display: flex; flex-direction: column; align-items: center; margin-right: 15px; cursor: pointer; } .profile-pic { width: 70px; he.........完整代码请登录后点击上方下载按钮下载查看
网友评论0