main.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. * {
  2. padding: 0px;
  3. margin: 0px;
  4. box-sizing:border-box;
  5. -moz-box-sizing:border-box; /* Firefox */
  6. -webkit-box-sizing:border-box; /* Safari */
  7. }
  8. html, body {
  9. width: 100%;
  10. height: 100%;
  11. /* 解决移动端点击闪烁问题 */
  12. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  13. }
  14. img {
  15. /*去除中间腰部间隙*/
  16. vertical-align:middle;
  17. /*去除顶部间隙*/
  18. vertical-align:bottom;
  19. /*去除中间顶部间隙*/
  20. vertical-align:top;
  21. /*注意该方法在对img控件使用的时候,使用 float 和 font-size 解决左右间隙问题
  22. 会导致img在div中无法居中,此时可以在img控件外设置新的一个div来设置居中进行实现居中
  23. 所以 float 和 font-size 一般特意指定几个目标范围内img控件解决左右间隙问题 例如.abc img{}
  24. 意思就是 设置了 class="abc" 里面所有的img控件执行样式
  25. */
  26. /*进行浮动解决左右两侧出现间隙 与 font-size: 0px; 一起配合 */
  27. /*float: left;*/
  28. /*这个也设置解决系统自带空白间隙问题 与 float: left; 一起配合*/
  29. /*font-size: 0px;*/
  30. }
  31. .app {
  32. width: 100%;
  33. height: 100%;
  34. position: fixed;
  35. top: 0px;
  36. left: 0px;
  37. overflow-x: scroll;
  38. overflow-y: scroll;
  39. }
  40. .common {
  41. width: 100%;
  42. height: auto;
  43. padding: 3px;
  44. }
  45. .content {
  46. width: 100%;
  47. height: 300px;
  48. background-color: rgb(233, 233, 233);
  49. position: relative;
  50. }
  51. .leftTitle {
  52. position: absolute;
  53. top: 1%;
  54. left: 1%;
  55. height: 6%;
  56. right: 38%;
  57. background-color: #ffffff;
  58. }
  59. .leftTxt {
  60. position: absolute;
  61. top: 8%;
  62. left: 1%;
  63. bottom: 1%;
  64. right: 38%;
  65. background-color: #ffffff;
  66. overflow-y: scroll;
  67. /* 文本换行 */
  68. text-wrap: normal;
  69. word-break: break-all;
  70. /* white-space: pre-wrap; */
  71. }
  72. .rightTitle {
  73. position: absolute;
  74. top: 1%;
  75. left: 63%;
  76. height: 6%;
  77. right: 1%;
  78. background-color: #ffffff;
  79. }
  80. .rightUser {
  81. position: absolute;
  82. top: 8%;
  83. left: 63%;
  84. bottom: 1%;
  85. right: 1%;
  86. background-color: #ffffff;
  87. -moz-user-select: none;
  88. -webkit-user-select: none;
  89. -ms-user-select: none;
  90. -khtml-user-select: none;
  91. user-select: none;
  92. overflow-y: scroll;
  93. }
  94. .select {
  95. /* 文本换行 */
  96. text-wrap: normal;
  97. word-break: break-all;
  98. padding: 5px;
  99. border: 1px solid #00aeff;
  100. margin: 1px;
  101. /* 手势 */
  102. cursor : pointer;
  103. background-color: #ffffff;
  104. color: #000000;
  105. }
  106. .selectYes {
  107. background-color: #00aeff;
  108. color: #ffffff;
  109. }
  110. .submitEdit {
  111. width: 100%;
  112. padding: 3px;
  113. }
  114. .chat {
  115. width: 100%;
  116. height: auto;
  117. padding: 5px;
  118. }
  119. .chatTitle {
  120. font-size: 14px;
  121. color: darkgreen;
  122. }
  123. .chatTxt {
  124. font-size: 14px;
  125. color: rgb(128, 128, 128);
  126. }
  127. .chatSys {
  128. color: #636363;
  129. }
  130. .chatObj {
  131. color: #017771;
  132. }