Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Test</title>
  5. <meta charset="UTF-8" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
  7. <link rel="stylesheet" href="index.css" />
  8. </head>
  9. <body>
  10. <div id="back1">Hello world!</div><!-- Don't work anywhere, why? -->
  11. <div id="back2">Hello world!</div><!-- Don't work in Safari <= 8 -->
  12. </body>
  13. </html>
  14.  
  15. #back1,
  16. #back2 {
  17. padding: 40px;
  18. color: white;
  19. background-color: black;
  20. background-position: center center;
  21. background-repeat: no-repeat;
  22. -moz-background-size: cover;
  23. background-size: cover;
  24. }
  25.  
  26. #back1 {
  27. background-image: url(index1.svg);
  28. }
  29.  
  30. #back2 {
  31. background-image: url(index2.svg);
  32. }
  33.  
  34. <?xml version="1.0" standalone="no"?>
  35. <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
  36. "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
  37. <svg width="1080" height="720" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  38.  
  39. <filter id="svgBlurFilter">
  40. <feGaussianBlur in="SourceGraphic" stdDeviation="5" />
  41. </filter>
  42.  
  43. <image xlink:href="https://unsplash.it/1080/720" x="0" y="0" width="1080" height="720" filter="url(#svgBlurFilter)" />
  44.  
  45. </svg>
  46.  
  47. <?xml version="1.0" standalone="no"?>
  48. <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
  49. "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
  50. <svg width="1080" height="720" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  51.  
  52. <filter id="svgBlurFilter">
  53. <feGaussianBlur in="SourceGraphic" stdDeviation="5" />
  54. </filter>
  55.  
  56. <image xlink:href="data:image/jpg;base64, ... " x="0" y="0" width="1080" height="720" filter="url(#svgBlurFilter)" />
  57.  
  58. </svg>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement