博客列表 >0714 布局

0714 布局

小言
小言原创
2022年07月16日 15:51:37279浏览
  1. <!-- 右侧 -->
  2. <div class="right">
  3. <div class="right-top">
  4. <div class="right-top-left">
  5. <a href=""><img src="https://www.php.cn/static/images/user_avatar.jpg" alt="" /></a>
  6. <div class="right-top-left-right">
  7. <a href="">小言</a>
  8. <span>P豆 2222</span>
  9. </div>
  10. </div>
  11. <div class="right-top-right">
  12. <a href="">我的学习</a>
  13. </div>
  14. </div>
  15. <div class="right-bottom">
  16. <div class="item">问答社区 <a href="">答疑</a></div>
  17. <div class="items"><span>头条</span> <a href="">我的头条</a></div>
  18. <div class="items"><span>头条</span> <a href="">我的头条</a></div>
  19. <div class="items"><span>头条</span> <a href="">我的头条</a></div>
  20. <div class="items"><span>头条</span> <a href="">我的头条</a></div>
  21. <div class="items"><span>头条</span> <a href="">我的头条</a></div>
  22. </div>
  23. </div>
  24. <!-- 右侧end -->
  25. <!-- 底部右侧 -->
  26. <div class="bottom-right">
  27. <div class="bottom-right-left">
  28. <a href=""><img src="static0714/images/wx.png" alt=""></a>
  29. <a href="">官方公众号</a>
  30. </div>
  31. <div class="bottom-right-left">
  32. <a href=""><img src="static0714/images/qq.png" alt=""></a>
  33. <a href="">官方公众号</a>
  34. </div>
  35. </div>
  36. <!-- 底部右侧end -->
  1. /* 右边 */
  2. main .right{
  3. display: grid;
  4. grid-template-rows: 140px 260px;
  5. background-color: aquamarine;
  6. }
  7. main .right .right-top{
  8. /* background-color: aqua; */
  9. display: grid;
  10. grid-template-rows: 90px 50px;
  11. place-items: center;
  12. border-bottom: 1px solid #eeeeee;
  13. }
  14. /* 头像 名字 */
  15. main .right .right-top .right-top-left{
  16. display: grid;
  17. grid-template-columns:60px 130px;
  18. }
  19. main .right .right-top .right-top-left img{
  20. margin: 30px;
  21. width: 50%;
  22. border-radius: 50%;
  23. }
  24. main .right .right-top .right-top-left .right-top-left-right{
  25. display: grid;
  26. grid-template-rows:45px;
  27. place-items: center left;
  28. margin: 10px;
  29. }
  30. main .right .right-top .right-top-left .right-top-left-right span{
  31. color: #999;
  32. font-size: 12px;
  33. margin-top: -10px;
  34. }
  35. /* 我的学习 */
  36. main .right .right-top .right-top-right a{
  37. display: block;
  38. background-color: red;
  39. border-radius: 100px;
  40. height: 34px;
  41. width: 150px;
  42. text-align: center;
  43. line-height: 34px;
  44. color: #fff;
  45. margin-bottom:30px;
  46. }
  47. /* 侧栏 */
  48. main .right .right-bottom{
  49. display: flex;
  50. flex-direction:column;
  51. }
  52. main .right .right-bottom .item{
  53. height: 40px;
  54. font-size: 16px;
  55. display: flex;
  56. justify-content:center;
  57. align-items:center;
  58. }
  59. main .right .right-bottom .item a{
  60. background-color: red;
  61. height: 16px;
  62. width: 30px;
  63. color: #fff;
  64. font-size: 12px;
  65. line-height: 16px;
  66. margin-top: 5px;
  67. text-align: center;
  68. }
  69. main .right .right-bottom .items{
  70. display: flex;
  71. flex-grow:1;
  72. justify-content:center;
  73. align-items:center;
  74. }
  75. main .right .right-bottom .items span{
  76. width: 50px;
  77. }
  78. main .right .right-bottom .items a{
  79. color: #999;
  80. }
  81. main .right .right-bottom .items a:hover{
  82. color: red;
  83. }
  84. /* 右边end */
  85. /* 底部右侧 */
  86. main .navs .bottom-right{
  87. display: flex;
  88. flex-direction: row;
  89. }
  90. main .navs .bottom-right .bottom-right-left{
  91. background-color: #fff;
  92. width: 50%;
  93. display: grid;
  94. grid-template-columns:90px;
  95. place-items: center;
  96. }
  97. main .navs .bottom-right .bottom-right-left img{
  98. width: 40%;
  99. margin-left: 25px;
  100. }
  101. main .navs .bottom-right .bottom-right-left a:hover{
  102. color: red;
  103. }

声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议