当前位置:   article > 正文

html样式排版

html样式排版

  1. <template>
  2. <div class="box">
  3. <div class="header">头部</div>
  4. <div class="main">
  5. <div class="left">菜单</div>
  6. <div class="right">
  7. <div class="right-contentr">
  8. <div class="top-pal"></div>
  9. <div class="bottom-pal"></div>
  10. </div>
  11. <div class="right-contents">2</div>
  12. </div>
  13. </div>
  14. </div>
  15. </template>
  16. <script>
  17. export default {
  18. }
  19. </script>
  20. <style lang="less" scoped>
  21. .header {
  22. background: #ccc;
  23. height: 56px;
  24. }
  25. .main {
  26. display: flex;
  27. height: calc(100% - 56px);
  28. .left {
  29. width: 240px;
  30. height: 100%;
  31. background: #fff;
  32. }
  33. .right {
  34. flex: 1;
  35. display: flex;
  36. padding: 20px;
  37. box-sizing: border-box;
  38. .right-contentr {
  39. min-width: 200px;
  40. margin-right: 20px;
  41. width: 320px;
  42. .top-pal {
  43. background: #fff;
  44. min-height: 180px;
  45. padding: 25px;
  46. margin-bottom: 20px;
  47. }
  48. .bottom-pal {
  49. background: #fff;
  50. height: calc(100% - 180px - 20px);
  51. overflow: auto;
  52. padding: 25px;
  53. }
  54. }
  55. .right-contents {
  56. background: #fff;
  57. flex: 1;
  58. }
  59. }
  60. }
  61. </style>

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号