splitscreen.less 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*分屏样式*/
  2. /*分屏*/
  3. .split_screen {
  4. position: absolute;
  5. width: 100%;
  6. height: 70%;
  7. background-color: #0b0b0b;
  8. box-sizing: border-box;
  9. overflow: hidden;
  10. color:#ffffff;
  11. font-size:20px;
  12. /*分屏项(信号源)*/
  13. .sitem {
  14. position: absolute;
  15. border: 1px solid #000000;
  16. color:#fff;
  17. background-color: #717171;
  18. // 关闭信号源开窗按钮
  19. .closeBtn {
  20. position: absolute;
  21. right:2px;
  22. top:2px;
  23. color:#ffffff;
  24. width:20px;
  25. height: 20px;
  26. text-align: center;
  27. line-height: 20px;
  28. font-size:30px;
  29. z-index: 99999;
  30. cursor: default;
  31. }
  32. }
  33. /*分屏项(栅格)*/
  34. .sitem2 {
  35. color:#000;
  36. border: 1px solid #3b3b3b;
  37. margin-right: -1px;
  38. margin-bottom: -1px;
  39. }
  40. }
  41. /*1分屏*/
  42. .split_screen_one {
  43. display: grid;
  44. grid-template-columns: repeat(1,100%);
  45. grid-template-rows: repeat(1,100%);
  46. }
  47. /*4分屏*/
  48. .split_screen_four {
  49. display: grid;
  50. grid-template-columns: repeat(2,50%);
  51. grid-template-rows: repeat(2,50%);
  52. }
  53. /*9分屏*/
  54. .split_screen_nine {
  55. display: grid;
  56. grid-template-columns: repeat(3,33.3333333%);
  57. grid-template-rows: repeat(3,33.3333333%);
  58. }
  59. /*16分屏*/
  60. .split_screen_sixteen {
  61. display: grid;
  62. grid-template-columns: repeat(4,25%);
  63. grid-template-rows: repeat(4,25%);
  64. }