index.less 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. @import './base.less';
  2. body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, input, textarea, p, th, td, hr, button {
  3. margin: 0;
  4. padding: 0;
  5. font-family: Arial, sans-serif, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB";
  6. color: #323232;
  7. // -webkit-text-size-adjust:100%;
  8. -webkit-text-size-adjust:auto;
  9. }
  10. input, textarea{
  11. outline: none;
  12. border: 0 none;
  13. -webkit-tap-highlight-color:transparent; //ios去掉选择阴影
  14. }
  15. button {
  16. border: 0 none;
  17. }
  18. i {
  19. font-style: normal;
  20. }
  21. ol, ul {
  22. list-style: none;
  23. }
  24. a {
  25. text-decoration: none;
  26. }
  27. .fl {
  28. float: left;
  29. }
  30. .fr {
  31. float: right;
  32. }
  33. /* 清理浮动 */
  34. .clearfix:after {
  35. visibility: hidden;
  36. display: block;
  37. font-size: 0;
  38. content: "";
  39. clear: both;
  40. height: 0;
  41. line-height:0;
  42. }
  43. .clearfix {
  44. zoom: 1; /* for IE6 IE7 */
  45. }
  46. /* 单行文字溢出时出现省略号,需设定宽度 */
  47. .ellips {
  48. overflow: hidden;
  49. white-space: nowrap;
  50. text-overflow: ellipsis;
  51. }
  52. html,body{
  53. width: 100%;
  54. height: auto !important;
  55. overflow-x: auto;
  56. }
  57. html{
  58. margin: 0;
  59. padding: 0;
  60. // font-size: @font-size; //750px,1vw = 750*1%=7.5px
  61. font-size: 13.33333333vw !important;
  62. }
  63. // 兼容ipad和pc端大屏幕
  64. @media screen and (min-width: 560px){
  65. html{
  66. font-size: 54px;
  67. }
  68. }
  69. /* @media screen and (max-width:320px){兼容iphone5
  70. .symptomDes .arrorTop p {
  71. padding-left: 0 !important;
  72. text-align: right;
  73. }
  74. .resultSym {
  75. overflow: hidden;
  76. white-space: nowrap;
  77. text-overflow: ellipsis;
  78. width: 110px;
  79. }
  80. .main .mainBtm .Recommend {
  81. font-size: 14px !important;
  82. }
  83. .main .mainBtm .Recommend .btn {
  84. padding: 0 10px !important;
  85. }
  86. } */