Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| button-test [2024/01/24 17:40] – yiler.huang | button-test [2024/01/24 17:50] (current) – yiler.huang | ||
|---|---|---|---|
| Line 18: | Line 18: | ||
| }); | }); | ||
| [...document.getElementsByClassName(" | [...document.getElementsByClassName(" | ||
| - | | + | [...document.getElementsByClassName(" |
| } | } | ||
| </ | </ | ||
| Line 30: | Line 30: | ||
| margin: 3px; | margin: 3px; | ||
| } | } | ||
| - | + | | |
| - | @media only screen and (max-width: 767px) { | + | |
| - | .button { | + | |
| - | width: 79%; | + | |
| - | height: 79%; | + | |
| - | background-color: | + | |
| - | position: relative; | + | |
| - | overflow: hidden; | + | |
| - | margin: 3px; | + | |
| - | } | + | |
| - | } | + | |
| .image { | .image { | ||
| position: absolute; | position: absolute; | ||