123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- html, body, div, span, applet, object, iframe,
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
- a, abbr, acronym, address, big, cite, code,
- del, dfn, em, img, ins, kbd, q, s, samp,
- small, strike, strong, sub, sup, tt, var,
- b, u, i, center,
- dl, dt, dd, ol, ul, li,
- fieldset, form, label, legend,
- table, caption, tbody, tfoot, thead, tr, th, td,
- article, aside, canvas, details, embed,
- figure, figcaption, footer, header, hgroup,
- menu, nav, output, ruby, section, summary,
- time, mark, audio, video {
- margin: 0;
- padding: 0;
- border: 0;
- font-size: 100%;
- font: inherit;
- vertical-align: baseline;
- }
- /* HTML5 display-role reset for older browsers */
- article, aside, details, figcaption, figure,
- footer, header, hgroup, menu, nav, section {
- display: block;
- }
- body {
- line-height: 1;
- }
- ol, ul {
- list-style: none;
- }
- blockquote, q {
- quotes: none;
- }
- blockquote:before, blockquote:after,
- q:before, q:after {
- content: '';
- content: none;
- }
- table {
- border-collapse: collapse;
- border-spacing: 0;
- }
- .hide {
- display: none;
- }
- .car, .enemy {
- width: 50px;
- height: 100px;
- background: transparent url('./image/mycar.png') center / cover no-repeat;
- position: absolute;
- left: 125px;
- bottom: 10px;
- }
- .gameArea {
- position: relative;
- width: 300px;
- height: 100%;
- margin: auto;
- background: gray;
- overflow: hidden;
- }
- .line {
- width: 10px;
- height: 50px;
- left: 145px;
- position: absolute;
- background: #fff;
- }
- .startTitle {
- margin-top: 50%;
- text-align: center;
- font-size: 1.5rem;
- z-index: 2;
- }
- .start {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- margin: 0;
- padding: 2rem 0;
- z-index: 200;
- color: #fff;
- font-size: 1.5rem;
- background: black;
- font-family: sans-serif;
- font-weight: 700;
- text-align: center;
- }
- .score {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- margin: 0;
- padding: 1rem 0;
- z-index: 200;
- font-size: 1.5rem;
- background: black;
- color: skyblue;
- font-family: sans-serif;
- font-weight: 500;
- text-align: center;
- }
|