filter.wxss 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. page{
  2. background: #000;
  3. }
  4. /*总体主盒子*/
  5. .containers {
  6. position: relative;
  7. width: 100%;
  8. height: 100%;
  9. color: #fff;
  10. }
  11. /*左侧栏主盒子*/
  12. .nav_left{
  13. /*设置行内块级元素(没使用定位)*/
  14. display: inline-block;
  15. width: 35%;
  16. height: 100%;
  17. /*主盒子设置背景色为灰色*/
  18. text-align: center;
  19. }
  20. /*左侧栏list的item*/
  21. .nav_left .nav_left_items{
  22. /*每个高30px*/
  23. height: 30px;
  24. /*垂直居中*/
  25. line-height: 30px;
  26. /*再设上下padding增加高度,总高42px*/
  27. padding: 6px 0;
  28. /* 只设下边线
  29. border-bottom: 1px solid #dedede; */
  30. /*文字14px*/
  31. font-size: 14px;
  32. }
  33. /*左侧栏list的item被选中时*/
  34. .nav_left .nav_left_items.active{
  35. /*背景色变成白色*/
  36. background: #1C1C1C;
  37. }
  38. /*右侧栏主盒子*/
  39. .nav_right{
  40. /*右侧盒子使用了绝对定位*/
  41. position: absolute;
  42. top: 0;
  43. right: 0;
  44. flex: 1;
  45. /*宽度75%,高度占满,并使用百分比布局*/
  46. width: 65%;
  47. height: 100%;
  48. padding: 10px;
  49. box-sizing: border-box;
  50. background: #1C1C1C;
  51. }
  52. /*右侧栏list的item*/
  53. .nav_right .nav_right_items{
  54. /* 浮动向左
  55. float: left; */
  56. /*每个item设置宽度是33.33%*/
  57. width: 100%;
  58. height: 40px;
  59. text-align: center;
  60. }
  61. .nav_right .nav_right_items image{
  62. /*被图片设置宽高*/
  63. width: 50px;
  64. height: 30px;
  65. }
  66. .nav_right .nav_right_items text{
  67. /*给text设成块级元素*/
  68. display: block;
  69. margin-top: 5px;
  70. font-size: 10px;
  71. /*设置文字溢出部分为...*/
  72. overflow: hidden;
  73. white-space: nowrap;
  74. text-overflow: ellipsis;
  75. }