blob: ee30aeb622d40f4609a69c26c6eb86a13c74b080 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<!DOCTYPE HTML>
<html>
<head>
<style>
#container {
height: 500px;
width: 500px;
position: relative;
overflow: hidden;
}
#panel {
position:absolute;
height: 100%;
width: 100%;
top: 0;
left: 0;
transform: translateX(0);
background-color: yellow;
}
</style>
</head>
<body>
<div id="container">
<div id="panel">
<div style="width:300px; height:50px; background:blue;"></div>
</div>
</div>
|