g.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521
  1. /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
  2. /**
  3. * 1. Set default font family to sans-serif.
  4. * 2. Prevent iOS text size adjust after orientation change, without disabling
  5. * user zoom.
  6. */
  7. html {
  8. font-size: 62.5%;
  9. font-family: sans-serif; /* 1 */
  10. -ms-text-size-adjust: 100%; /* 2 */
  11. -webkit-text-size-adjust: 100%; /* 2 */
  12. }
  13. /**
  14. * Remove default margin.
  15. */
  16. body {
  17. font-size: 12px;
  18. font-size: 1.6rem;
  19. margin: 0;
  20. }
  21. /* HTML5 display definitions
  22. ========================================================================== */
  23. /**
  24. * Correct `block` display not defined for any HTML5 element in IE 8/9.
  25. * Correct `block` display not defined for `details` or `summary` in IE 10/11
  26. * and Firefox.
  27. * Correct `block` display not defined for `main` in IE 11.
  28. */
  29. article,
  30. aside,
  31. details,
  32. figcaption,
  33. figure,
  34. footer,
  35. header,
  36. hgroup,
  37. main,
  38. menu,
  39. nav,
  40. section,
  41. summary {
  42. display: block;
  43. }
  44. /**
  45. * 1. Correct `inline-block` display not defined in IE 8/9.
  46. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  47. */
  48. audio,
  49. canvas,
  50. progress,
  51. video {
  52. display: inline-block; /* 1 */
  53. vertical-align: baseline; /* 2 */
  54. }
  55. /**
  56. * Prevent modern browsers from displaying `audio` without controls.
  57. * Remove excess height in iOS 5 devices.
  58. */
  59. audio:not([controls]) {
  60. display: none;
  61. height: 0;
  62. }
  63. /**
  64. * Address `[hidden]` styling not present in IE 8/9/10.
  65. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
  66. */
  67. [hidden],
  68. template {
  69. display: none;
  70. }
  71. /* Links
  72. ========================================================================== */
  73. /**
  74. * Remove the gray background color from active links in IE 10.
  75. */
  76. a {
  77. background-color: transparent;
  78. }
  79. /**
  80. * Improve readability when focused and also mouse hovered in all browsers.
  81. */
  82. a:active,
  83. a:hover {
  84. outline: 0;
  85. }
  86. /* Text-level semantics
  87. ========================================================================== */
  88. /**
  89. * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  90. */
  91. abbr[title] {
  92. border-bottom: 1px dotted;
  93. }
  94. /**
  95. * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  96. */
  97. b,
  98. strong {
  99. font-weight: bold;
  100. }
  101. /**
  102. * Address styling not present in Safari and Chrome.
  103. */
  104. dfn {
  105. font-style: italic;
  106. }
  107. /**
  108. * Address variable `h1` font-size and margin within `section` and `article`
  109. * contexts in Firefox 4+, Safari, and Chrome.
  110. */
  111. h1 {
  112. font-size: 2em;
  113. margin: 0.67em 0;
  114. }
  115. /**
  116. * Address styling not present in IE 8/9.
  117. */
  118. mark {
  119. background: #ff0;
  120. color: #000;
  121. }
  122. /**
  123. * Address inconsistent and variable font size in all browsers.
  124. */
  125. small {
  126. font-size: 80%;
  127. }
  128. /**
  129. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  130. */
  131. sub,
  132. sup {
  133. font-size: 75%;
  134. line-height: 0;
  135. position: relative;
  136. vertical-align: baseline;
  137. }
  138. sup {
  139. top: -0.5em;
  140. }
  141. sub {
  142. bottom: -0.25em;
  143. }
  144. /* Embedded content
  145. ========================================================================== */
  146. /**
  147. * Remove border when inside `a` element in IE 8/9/10.
  148. */
  149. img {
  150. border: 0;
  151. }
  152. /**
  153. * Correct overflow not hidden in IE 9/10/11.
  154. */
  155. svg:not(:root) {
  156. overflow: hidden;
  157. }
  158. /* Grouping content
  159. ========================================================================== */
  160. /**
  161. * Address margin not present in IE 8/9 and Safari.
  162. */
  163. figure {
  164. margin: 1em 40px;
  165. }
  166. /**
  167. * Address differences between Firefox and other browsers.
  168. */
  169. hr {
  170. -moz-box-sizing: content-box;
  171. box-sizing: content-box;
  172. height: 0;
  173. }
  174. /**
  175. * Contain overflow in all browsers.
  176. */
  177. pre {
  178. overflow: auto;
  179. }
  180. /**
  181. * Address odd `em`-unit font size rendering in all browsers.
  182. */
  183. code,
  184. kbd,
  185. pre,
  186. samp {
  187. font-family: monospace, monospace;
  188. font-size: 1em;
  189. }
  190. /* Forms
  191. ========================================================================== */
  192. /**
  193. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  194. * styling of `select`, unless a `border` property is set.
  195. */
  196. /**
  197. * 1. Correct color not being inherited.
  198. * Known issue: affects color of disabled elements.
  199. * 2. Correct font properties not being inherited.
  200. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  201. */
  202. button,
  203. input,
  204. optgroup,
  205. select,
  206. textarea {
  207. color: inherit; /* 1 */
  208. font: inherit; /* 2 */
  209. margin: 0; /* 3 */
  210. outline: none;
  211. }
  212. /**
  213. * Address `overflow` set to `hidden` in IE 8/9/10/11.
  214. */
  215. button {
  216. overflow: visible;
  217. }
  218. /**
  219. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  220. * All other form control elements do not inherit `text-transform` values.
  221. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  222. * Correct `select` style inheritance in Firefox.
  223. */
  224. button,
  225. select {
  226. text-transform: none;
  227. }
  228. /**
  229. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  230. * and `video` controls.
  231. * 2. Correct inability to style clickable `input` types in iOS.
  232. * 3. Improve usability and consistency of cursor style between image-type
  233. * `input` and others.
  234. */
  235. button,
  236. html input[type="button"], /* 1 */
  237. input[type="reset"],
  238. input[type="submit"] {
  239. -webkit-appearance: button; /* 2 */
  240. cursor: pointer; /* 3 */
  241. }
  242. /**
  243. * Re-set default cursor for disabled elements.
  244. */
  245. button[disabled],
  246. html input[disabled] {
  247. cursor: default;
  248. }
  249. /**
  250. * Remove inner padding and border in Firefox 4+.
  251. */
  252. button::-moz-focus-inner,
  253. input::-moz-focus-inner {
  254. border: 0;
  255. padding: 0;
  256. }
  257. /**
  258. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  259. * the UA stylesheet.
  260. */
  261. input {
  262. line-height: normal;
  263. }
  264. /**
  265. * It's recommended that you don't attempt to style these elements.
  266. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  267. *
  268. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  269. * 2. Remove excess padding in IE 8/9/10.
  270. */
  271. input[type="checkbox"],
  272. input[type="radio"] {
  273. box-sizing: border-box; /* 1 */
  274. padding: 0; /* 2 */
  275. }
  276. /**
  277. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  278. * `font-size` values of the `input`, it causes the cursor style of the
  279. * decrement button to change from `default` to `text`.
  280. */
  281. input[type="number"]::-webkit-inner-spin-button,
  282. input[type="number"]::-webkit-outer-spin-button {
  283. height: auto;
  284. }
  285. /**
  286. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  287. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
  288. * (include `-moz` to future-proof).
  289. */
  290. input[type="search"] {
  291. -webkit-appearance: textfield; /* 1 */
  292. -moz-box-sizing: content-box;
  293. -webkit-box-sizing: content-box; /* 2 */
  294. box-sizing: content-box;
  295. }
  296. /**
  297. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  298. * Safari (but not Chrome) clips the cancel button when the search input has
  299. * padding (and `textfield` appearance).
  300. */
  301. input[type="search"]::-webkit-search-cancel-button,
  302. input[type="search"]::-webkit-search-decoration {
  303. -webkit-appearance: none;
  304. }
  305. /**
  306. * Define consistent border, margin, and padding.
  307. */
  308. fieldset {
  309. border: 1px solid #c0c0c0;
  310. margin: 0 2px;
  311. padding: 0.35em 0.625em 0.75em;
  312. }
  313. /**
  314. * 1. Correct `color` not being inherited in IE 8/9/10/11.
  315. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  316. */
  317. legend {
  318. border: 0; /* 1 */
  319. padding: 0; /* 2 */
  320. }
  321. /**
  322. * Remove default vertical scrollbar in IE 8/9/10/11.
  323. */
  324. textarea {
  325. overflow: auto;
  326. }
  327. /**
  328. * Don't inherit the `font-weight` (applied by a rule above).
  329. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  330. */
  331. optgroup {
  332. font-weight: bold;
  333. }
  334. /* Tables
  335. ========================================================================== */
  336. /**
  337. * Remove most spacing between table cells.
  338. */
  339. table {
  340. border-collapse: collapse;
  341. border-spacing: 0;
  342. }
  343. td,
  344. th {
  345. padding: 0;
  346. }
  347. /* reset
  348. ========================================================================== */
  349. * {
  350. margin: 0;
  351. padding: 0;
  352. -webkit-font-smoothing: antialiased;
  353. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  354. }
  355. html,body{-webkit-touch-callout: none;}
  356. body,
  357. button,
  358. input,
  359. select,
  360. textarea { font: 12px/1.5 Helvetica, Arial, sans-serif; }
  361. ul,
  362. ol { list-style: none; }
  363. img { vertical-align: top; }
  364. a {
  365. text-decoration: none;
  366. outline: none;
  367. }
  368. a:hover { text-decoration: underline; }
  369. /**
  370. * Address CSS quotes not supported in IE 6/7.
  371. */
  372. q { quotes: none; }
  373. /**
  374. * Address `quotes` property not supported in Safari 4.
  375. */
  376. q:before,
  377. q:after {
  378. content: '';
  379. content: none;
  380. }
  381. /* 浮动相关 */
  382. .fl { float: left; }
  383. .fr { float: right; }
  384. .cl { clear: both; }
  385. .clear:after,
  386. .clearfix:after {
  387. height: 0;
  388. content: ".";
  389. clear: both;
  390. display: block;
  391. visibility: hidden;
  392. }
  393. /*input*/
  394. .vertical-al02 { vertical-align: -2px; }
  395. .vertical-m { vertical-align: middle; }
  396. .vertical-b { vertical-align: bottom; }
  397. .vertical-t { vertical-align: top; }
  398. .underline { text-decoration: underline }
  399. /*font-family*/
  400. .f-yahei { font-family: "Microsoft YaHei";}
  401. .f-song { font-family: Helvetica, Arial, sans-serif; }
  402. .fb { font-weight: bold; }
  403. .fn { font-weight: normal; }
  404. .t2 { text-indent: 2em; }
  405. .ta-c { text-align: center; }
  406. .ta-l { text-align: left; }
  407. .ta-r { text-align: right; }
  408. .db { display: block; }
  409. .dib-wrap { font-size: 0;/* 所有浏览器 */ *word-spacing:-1px;/* IE6、7 */
  410. }
  411. .dib-wrap .dib {
  412. font-size: 12px;
  413. letter-spacing: normal;
  414. word-spacing: normal;
  415. vertical-align: top;
  416. }
  417. @media screen and (-webkit-min-device-pixel-ratio:0) {
  418. /* firefox 中 letter-spacing 会导致脱离普通流的元素水平位移 */
  419. .dib-wrap { letter-spacing: -5px;/* Safari 等不支持字体大小为 0 的浏览器, N 根据父级字体调节*/ }
  420. }
  421. /*table-cell布局*/
  422. .dt-wrap,
  423. .dt { display: table; }
  424. .dt-wrap .dtc {
  425. display: table-cell;
  426. vertical-align: middle;
  427. text-align: center;
  428. }
  429. .dib {
  430. display: inline-block;
  431. *display:inline;
  432. *zoom:1;
  433. }