日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > HTML >内容正文

HTML

前端学习(1813):前端调试之微博个人banner开发

發布時間:2023/12/10 HTML 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 前端学习(1813):前端调试之微博个人banner开发 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

index.html

<!DOCTYPE html> <html lang="en"><head> <!--系統內置 start--> <script type="text/javascript"></script> <!--系統內置 end--><meta charset="UTF-8"><title>微博實戰--banner</title><link rel="stylesheet" href="index.css"> </head><body><section class="banner"><header><!-- 頭像 --><div class="head"></div><!-- 姓名 性別 等級 --><div class="title"><span>我是娜扎</span><i class="sex"></i><i class="level"></i></div><div class="introduce">演員,代表作《擇天記》</div><div class="actions clearfix"><div class="focus"><span>關注</span></div><div class="focus-more"></div><div class="p-message">私信</div><div class="m-more"></div></div></header><nav><div class="container clearfix"><span class="left">她的主頁</span><span class="right">她的相冊</span></div></nav></section> </body></html>

index.css

* {margin: 0;padding: 0; } .clearfix::after {content: '';display: block;clear: both; }.banner {box-sizing: border-box;width: 920px; }.banner header {box-sizing: border-box;height: 300px;padding-top: 30px;background: url(./images/banner-bg.png) no-repeat center;background-size: contain; }.banner header .head {width: 110px;height: 110px;margin: 0 auto;border-radius: 50%;background: url(./images/banner-head-icon.png) no-repeat center;background-size: contain; }.banner header .title {margin-top: 10px;margin-bottom: 5px;text-align: center; }.banner header .title span {font-size: 22px;line-height: 29px;font-family: PingFang SC;font-style: normal;font-weight: 500;color: #ffffff;text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.31);vertical-align: text-bottom; }.banner header .title i {display: inline-block;width: 16px;height: 16px; }.banner header .title i.sex {background: url(./images/sex-icon.png) no-repeat center;background-size: contain; }.banner header .title i.level {background: url(./images/leval-icon.png) no-repeat center;background-size: contain; }.banner header .introduce {margin-bottom: 19px;text-align: center;font-family: PingFang SC;font-style: normal;font-weight: 500;font-size: 12px;line-height: 20px;color: #FFFFFF;text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.42); }.banner header .actions {width: 275px;margin: 0 auto; }.banner header .actions .focus {position: relative;float: left;width: 100px;background: linear-gradient(180deg, #FA823C 0%, #F55F10 100%);border-radius: 2px;font-family: PingFang SC;font-style: normal;font-weight: 500;font-size: 14px;line-height: 32px;color: #FFFFFF; }.banner header .actions .focus::before {position: absolute;top: 11px;left: 27px;content: '';width: 10px;height: 10px;background: url(./images/add-icon.png) no-repeat center;background-size: contain; }.banner header .actions .focus span {margin-left: 42px; }.banner header .actions .focus-more {position: relative;float: left;margin-left: 5px;margin-right: 12px;width: 20px;height: 32px;background: linear-gradient(180deg, #FA823C 0%, #F55F10 100%);border-radius: 2px; }.banner header .actions .focus-more::before {content: '';position: absolute;top: 14px;left: 7px;width: 7px;height: 4px;background: url(./images/triangle-icon.png) no-repeat center;background-size: contain; }.banner header .actions .p-message {float: left;width: 100px;margin-right: 8px;background: #70757F;border-radius: 2px;text-align: center;line-height: 32px;color: #FFFFFF;font-family: PingFang SC;font-style: normal;font-weight: 500;font-size: 14px; }.banner header .actions .m-more {position: relative;float: left;width: 30px;height: 32px;background: #70757F;border-radius: 2px; }.banner header .actions .m-more::before {content: '';position: absolute;top: 10px;left: 8px;width: 14px;height: 11px;background: url(./images/list-icon.png) no-repeat center;background-size: contain; }.banner nav {box-sizing: border-box;background: #FFFFFF;box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.15); }.banner nav .container {width: 332px;margin: 0 auto; }.banner nav .container span {box-sizing: border-box;float: left;height: 40px;font-family: PingFang SC;font-style: normal;font-weight: normal;font-size: 14px;line-height: 14px;color: #000000; }.banner nav .container span.left {line-height: 40px;font-weight: 600;border-bottom: 2px solid #F7691D; }.banner nav .container span.right {float: right;line-height: 40px; }

運行結果

總結

以上是生活随笔為你收集整理的前端学习(1813):前端调试之微博个人banner开发的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。