mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
f8e76dd7cd
positioning robustness
28 lines
666 B
HTML
28 lines
666 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.fixed-el {
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: red;
|
|
}
|
|
.test-el {
|
|
position: absolute;
|
|
left: 400px;
|
|
top: 200px;
|
|
height: 100px;
|
|
width: 100px;
|
|
background-color: yellowgreen;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="fixed-el">123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890-12345678901234567890123456789012345678901234567890
|
|
<div class="test-el"></div>
|
|
</div>
|
|
</body>
|
|
</html> |