index.wxss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* pages/ControlDevice/ControlDevice.wxss */
  2. /**index.wxss**/
  3. .main{
  4. width:100%;
  5. height:100%;
  6. display: flex;/*main这个框里面的元素使用flex布局方式*/
  7. flex-direction: column; /*里面的元素这样从上到下排列*/
  8. position:fixed;
  9. background-color: #f0ffff
  10. }
  11. .temperature_humidity{
  12. display: flex;/*这个框里面的元素使用flex布局方式*/
  13. flex-direction:row;/*左右排列控件,从左到右,水平线就叫做主轴,竖直的就叫做交叉轴*/
  14. /* justify-content: flex-start | flex-end | center | space-between | space-around; */
  15. justify-content: space-around;
  16. }
  17. /*温湿度 View*/
  18. .temperature_view,.humidity_view{
  19. display: flex;/*这个框里面的元素使用flex布局方式*/
  20. flex-direction:row;/*左右排列控件,从左到右,水平线就叫做主轴,竖直的就叫做交叉轴*/
  21. margin-top: 40rpx;
  22. }
  23. /*温湿度 图片大小*/
  24. .temperature,.humidity{
  25. width: 100rpx;
  26. height: 100rpx
  27. }
  28. /*温湿度 显示的文字设置*/
  29. .temperaturetext,.humiditytext{
  30. padding-top: 5px;
  31. font-size:30px;
  32. text-align: center;
  33. height: 150rpx;
  34. }
  35. .Switch{
  36. width: 280rpx;
  37. height: 280rpx;
  38. margin-top: 56%;
  39. align-self: center
  40. }