Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
div#haupt {
background-color: #000000;
}
div#haupt div.box {
float: left;
height: 80px;
}
div.clear {
clear: left;
}
<div id="haupt">
<div class="box">A<br /><br /></div>
<div class="box">B<br /><br /></div>
<div class="clear"> </div>
</div>
<style type="text/css">
div#haupt {
background-color: yellow;
}
div#haupt div.box {
float: left;
background-color: black;
color: white;
}
div.clear {
clear: left;
}
</style>
<div id="haupt">
<div class="box">A</div>
<div class="box">B</div>
<div class="clear"> </div>
</div>
div.clear {
clear: left;
margin: 0;
padding: 0;
height: 0;
line-height: 0;
font-size: 0;
}
<style type="text/css">
div#haupt {
background-color: yellow;
}
div#haupt div.box {
float: left;
background-color: black;
color: white;
}
div.clear {
clear: left;
margin: 0;
padding: 0;
height: 0;
line-height: 0;
font-size: 0;
}
</style>
<div id="haupt">
<div class="box">A</div>
<div class="box">B</div>
<div class="clear"></div>
</div>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title></title>
<style type="text/css">
div#haupt {
background-color: yellow;
}
div#haupt div.box {
float: left;
background-color: black;
color: white;
}
div.clear {
clear: left;
margin: 0;
padding: 0;
height: 0;
line-height: 0;
font-size: 0;
}
</style>
</head>
<body>
<div id="haupt">
<div class="box">A</div>
<div class="box">B</div>
<div class="clear"></div>
</div>
</body>
</html>
div#haupt {
background-color: yellow;
height: 1%;
}
/* oder */
div#haupt div.box {
float: left;
background-color: black;
color: white;
height: 1%;
}