Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
<div id="logo">
<img src="Logo.png" width="100%" hight="auto">
</div>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8"><!-- Schließende Slashes sind unter HTML5 nicht erforderlich, aber erlaubt -->
<title>Logowechsel 01</title>
<meta name="description" content="HTML5, CSS3">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Um alte IE HTML5-tauglich zu machen -->
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Internes CSS ("type="text/css" ist unter HTML5 nicht erforderlich) -->
<style>
@media all {
/* Neue HTML5-Elemente für ältere Browser als Block-Elemente übergeben */
header, nav, main, aside, footer, section, article, figure, figcaption, audio, video {
display: block;
}
* {
box-sizing: border-box;
}
html {
font-size: 120%;
}
body {
padding: 0;
}
h2 {
line-height: 2.5;
background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/f/f3/Volkswagen_logo.svg/240px-Volkswagen_logo.svg.png");
background-repeat: no-repeat;
background-size: contain;
padding-left: 4rem;
}
}
@media only screen and (max-width: 1000px) {
h2 {
background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/4/44/BMW.svg/240px-BMW.svg.png");
}
}
@media only screen and (max-width: 700px) {
h2 {
background-image: url("https://upload.wikimedia.org/wikipedia/commons/e/e0/Mercedes_benz_logo_1926.png");
}
}
</style>
</head>
<body>
<header>
<h2>header</h2>
</header>
<article>
<p>Logowechsel bei 700px und 1000px.</p>
</article>
</body>
</html>