left-nav.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. /*-----------去除默认样式-------------------------------------*/
  2. body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */
  3. dl, dt, dd, ul, ol, li, /* list elements 列表元素 */
  4. pre, /* text formatting elements 文本格式元素 */
  5. fieldset, button, input, textarea, lengend /* form elements 表单元素 */
  6. th, td { /* table elements 表格元素 */
  7. margin: 0;
  8. padding: 0;
  9. border: none;
  10. color: #333;
  11. }
  12. body,
  13. button, input, select, textarea {
  14. /* for ie */
  15. /*font: 12px/1 Tahoma, Helvetica, Arial, "宋体", sans-serif;*/
  16. font: 12px/1 Tahoma, Helvetica, Arial, "\5b8b\4f53", sans-serif;
  17. /* 用 ascii 字符表示,使得在任何编码下都无问题 */
  18. }
  19. button, input, select, textarea {
  20. font-size: 100%; /* 使得表单元素在 ie 下能继承字体大小 */
  21. }
  22. /*chrome表单自动填充去掉input黄色背景解决方案
  23. 可以对input:-webkit-autofill使用足够大的纯色内阴影来覆盖input输入框的黄色背景;如:*/
  24. input:-webkit-autofill {
  25. -webkit-box-shadow: 0 0 0px 1000px white inset;
  26. border: 1px solid #fff !important;
  27. }
  28. /*只要在样式里面加一句去掉css去掉iPhone、iPad的默认按钮样式就可以了!~*/
  29. input[type="button"], input[type="submit"], input[type="reset"] {
  30. -webkit-appearance: none;
  31. }
  32. /* 定义placeholder文字颜色 */
  33. ::-webkit-input-placeholder { /* WebKit browsers */
  34. color: #b9b9b9;
  35. }
  36. :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
  37. color: #b9b9b9;
  38. }
  39. ::-moz-placeholder { /* Mozilla Firefox 19+ */
  40. color: #b9b9b9;
  41. }
  42. :-ms-input-placeholder { /* Internet Explorer 10+ */
  43. color: #b9b9b9;
  44. }
  45. select {
  46. border: solid 1px #000; /*Chrome和Firefox里面的边框是不一样的,所以复写了一下*/
  47. /*很关键:将默认的select选择框样式清除*/
  48. appearance: none;
  49. -moz-appearance: none;
  50. -webkit-appearance: none;
  51. /*在选择框的最右侧中间显示小箭头图片*/
  52. background: url("http://ourjs.github.io/static/2015/arrow.png") no-repeat scroll right center transparent;
  53. /*为下拉小箭头留出一点位置,避免被文字覆盖*/
  54. padding-right: 14px;
  55. }
  56. /*清除ie的默认选择框样式清除,隐藏下拉箭头*/
  57. select::-ms-expand {
  58. display: none;
  59. }
  60. textarea {
  61. -webkit-appearance: none;
  62. }
  63. /* 重置表格元素 */
  64. table {
  65. border-collapse: collapse;
  66. border-spacing: 0;
  67. width: 100%;
  68. /*text-align: center;*/
  69. }
  70. table td {
  71. word-break: break-all;
  72. word-wrap: break-word;
  73. }
  74. img {
  75. border: none;
  76. display: block;
  77. }
  78. /* for ie6 */
  79. fieldset, img {
  80. border: none;
  81. }
  82. /* 重置文本格式元素 */
  83. a {
  84. text-decoration: none;
  85. }
  86. a:hover {
  87. text-decoration: underline;
  88. }
  89. /* 重置列表元素 */
  90. ul, ol {
  91. list-style: none;
  92. }
  93. /* 重置 hr */
  94. hr {
  95. border: none;
  96. height: 1px;
  97. }
  98. address, cite, dfn, em, var {
  99. font-style: normal;
  100. }
  101. /* 将斜体扶正 */
  102. code, kbd, pre, samp, tt {
  103. font-family: "Courier New", Courier, monospace;
  104. }
  105. /* 统一等宽字体 *//* 小于 12px 的中文很难阅读,让 small 正常化 */
  106. small {
  107. font-size: 12px;
  108. }
  109. abbr[title], acronym[title] { /* 注:1.ie6 不支持 abbr; 2.这里用了属性选择符,ie6 下无效果 */
  110. border-bottom: 1px dotted;
  111. cursor: help;
  112. }
  113. q:before, q:after {
  114. content: '';
  115. }
  116. /* 重置表单元素 */
  117. legend {
  118. color: #000;
  119. }
  120. /*
  121. 移动端项目:font-family:Tahoma,Arial,Roboto,”Droid Sans”,”Helvetica Neue”,”Droid Sans Fallback”,”Heiti SC”,sans-self;
  122. pc端(含Mac)项目:font-family:Tahoma,Arial,”Helvetica Neue“,”Hiragino Sans GB”,Simsun,sans-self;
  123. 移动和pc端项目:font-family:Tahoma,Arial,Roboto,”Droid Sans”,”Helvetica Neue”,”Droid Sans Fallback”,”Heiti SC”,”Hiragino Sans GB”,Simsun,sans-self;*/
  124. /*渐变:
  125. background:-webkit-linear-gradient(top,#d82c3e,#ff6450);
  126. background:-moz-linear-gradient(top,#d82c3e,#ff6450);
  127. background:-ms-linear-gradient(top,#d82c3e,#ff6450);
  128. background:-o-linear-gradient(top,#d82c3e,#ff6450);
  129. */
  130. /*左侧滑动覆盖滚动条*/
  131. .left {
  132. width: 100%;
  133. height: 100%;
  134. background: #fff;
  135. overflow: hidden;
  136. }
  137. .left > div {
  138. width: 100%;
  139. overflow-x: hidden;
  140. overflow-y: auto;
  141. padding-right: 25px;
  142. }
  143. .left-top {
  144. width: 100%;
  145. padding: 0 20px;
  146. color: #4d7cc2;
  147. height: 50px;
  148. line-height: 50px;
  149. overflow: hidden;
  150. }
  151. .left-top img {
  152. width: 16px;
  153. float: left;
  154. margin: 17px 0;
  155. }
  156. .left-top p {
  157. color: #4d7cc2;
  158. float: left;
  159. padding-left: 10px;
  160. font-size: 16px;
  161. }
  162. .nav-left-01 {
  163. width:190px;
  164. padding: 0 20px;
  165. color: #4d7cc2;
  166. overflow: hidden;
  167. }
  168. .nav-left-01 > a {
  169. height: 50px;
  170. line-height: 50px;
  171. }
  172. .nav-left-01 > a > img:first-of-type {
  173. width: 16px;
  174. float: left;
  175. margin: 17px 0;
  176. }
  177. .nav-left-01 > a > p {
  178. color: #4d7cc2;
  179. float: left;
  180. padding-left: 10px;
  181. font-size: 16px;
  182. }
  183. .icon-right {
  184. width: 16px;
  185. float: right;
  186. margin: 17px 0;
  187. }
  188. .classification {
  189. width: 100%;
  190. }
  191. .classification > li {
  192. padding-left: 65px;
  193. width: 165px;
  194. height: 50px;
  195. line-height: 50px;
  196. }
  197. .classification > li > a {
  198. font-size: 14px;
  199. color: #4d7cc2;
  200. }
  201. .classification > li:hover, .nav-left-01:hover {
  202. background: #ebf3ff;
  203. }