Wenn die Seite ausgezoomt ist, wie kann ich die Webseite und den gesamten Inhalt verkleinern? Dies ist vor dem Herauszoomen. Diese ist nach Auszoomen
Wie verkleinern Sie die gesamte Seite, wenn sie ausgezoomt ist?
Wie Mitte der Seite zu schrumpfen, während Auszoomen?
-Code im mit ist
<title>Demo</title>
<head>This is a demo</head>
<style>
#my-div{
margin-left: auto;
margin-right: auto;
width: 80%;
height: 50%;
}
#nav
{
background-color: red;
float: left;
width: 200px;
position:relative;
}
#detail
{
background-color: green;
float : right;
width: 800px;
position:relative;
}
div.testDetail
{
margin-top:10px;
margin-left:20px;
margin-right:20px;
margin-bottom:10px;
}
#container
{
width:1000px;
position:relative;
}
</style>
<hr>
<body style="background-color:blue";>
<div id="my-div">
<div id="container">
<div id="nav">
<ul>Tests</ul>
</div>
<div id="detail">
<div class="testDetail">
<image style="float:right;margin:5px;" src="test1.jpg" width="50px" height="50px"/>
<image style="float:right;margin:5px;" src="test2.jpg" width="50px" height="50px"/>
<image style="float:right;margin:5px;" src="test3.jpg" width="50px" height="50px"/>
<image style="float:right;margin:5px;" src="test4.jpg" width="50px" height="50px"/>
<h3>Title</h3>
<p>Testing</p>
</div>
</div>
<hr>
</div>
</div>
<body>
Bitte Beispielcode angeben. Sie könnten wahrscheinlich "margin: auto" hinzufügen, um sicherzustellen, dass der Inhalt zentriert ist. – phpheini
bieten Code Beispiel, und was Sie bisher versucht haben. – LorDex
ja, ich habe diesen Beispielcode –