top.css 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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. .top {
  132. background-image: url(../img/top_01.png);
  133. background-size: 100% 80px;
  134. width: 100%;
  135. height: 80px;
  136. line-height: 80px;
  137. overflow: hidden;
  138. position: fixed;
  139. top: 0;
  140. z-index: 8;
  141. }
  142. .top span {
  143. margin-left: 20px;
  144. font-size: 20px;
  145. color: #fff;
  146. word-spacing: 7em;
  147. }
  148. .top-right01 {
  149. overflow: hidden;
  150. padding-right: 25px;
  151. }
  152. .top-right01 > img {
  153. margin: 32px 4px 32px 15px;
  154. }
  155. .top-right01 > img, .top-right01 > p {
  156. float: left;
  157. }
  158. .top-right01 > img, .top-right01 > p {
  159. float: left;
  160. }
  161. .top-right11 {
  162. float: right;
  163. color: #fff;
  164. }
  165. .top-right11 img {
  166. float: left;
  167. margin: 32px 4px 32px 40px;
  168. }
  169. .top-right11 a {
  170. display: inline;
  171. color: #fff;
  172. padding-right: 20px;
  173. border-right: 1px solid #fff;
  174. line-height: 80px;
  175. }
  176. .top-right, .top-right01, .top-right02 {
  177. float: right;
  178. color: #fff;
  179. }