0
我有一種情況,當指定像20%這樣的流體邊緣頂部並且當我水平調整瀏覽器窗口大小時,邊緣頂部增加。這對我來說有點意外。我要尋找一個快速修復這個..當瀏覽器寬度增加時,定影液邊緣頂部增加
<html>
<head>
<title>Make yourself lucky</title>
<meta name="description" content="Make yourself lucky" />
<style type="text/css">
#slideshow {
float: left;
background-color: red;
width: 100px;
height: 100px;
margin-top: 20%;
}
</style>
</head>
<body>
<div id='wrapper'>
<div id='slideshow'>
slideshow
</div>
</div>
</body>
</html>