| 1 | <!DOCTYPE html> |
| 2 | <html lang="es"> |
| 3 | |
| 4 | <head> |
| 5 | <meta charset="UTF-8"> |
| 6 | <meta name="viewport" |
| 7 | content="width=device-width"> |
| 8 | <title>Fondo</title> |
| 9 | <style> |
| 10 | html { |
| 11 | |
| 12 | |
| 13 | |
| 14 | color: white; |
| 15 | |
| 16 | |
| 17 | |
| 18 | background-image: |
| 19 | url(https://media.giphy.com/media/3oKIPhf02cXU9W4Le0/giphy.gif); |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | background-repeat: no-repeat; |
| 26 | |
| 27 | |
| 28 | background-position-x: |
| 29 | center; |
| 30 | |
| 31 | |
| 32 | background-position-y: |
| 33 | center; |
| 34 | |
| 35 | |
| 36 | background-attachment: |
| 37 | fixed; |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | -webkit-background-size: cover; |
| 44 | -moz-background-size: cover; |
| 45 | -o-background-size: cover; |
| 46 | background-size: cover; |
| 47 | } |
| 48 | |
| 49 | |
| 50 | |
| 51 | a { |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | color: yellow; |
| 57 | } |
| 58 | </style> |
| 59 | </head> |
| 60 | |
| 61 | <body> |
| 62 | <h1>Fondo</h1> |
| 63 | <p> |
| 64 | Este ejemplo te muestra como |
| 65 | poner fondo a una página. |
| 66 | </p> |
| 67 | <footer> |
| 68 | <p> |
| 69 | © 2022 |
| 70 | Gilberto Pacheco Gallegos. |
| 71 | </p> |
| 72 | <p> |
| 73 | Imagen de |
| 74 | <a href="https://giphy.com"> |
| 75 | https: |
| 76 | </p> |
| 77 | </footer> |
| 78 | </body> |
| 79 | |
| 80 | </html> |