зеркало из https://github.com/mozilla/gecko-dev.git
18 строки
456 B
HTML
18 строки
456 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div style="overflow: auto; width: 150px; height: 200px">
|
|
<div style="position: sticky; top: 0; width: 100px; height: 100px; background-color: green"></div>
|
|
<div style="height: 300px; width: 100px"></div>
|
|
</div>
|
|
</body>
|
|
</html>
|