<html>
<head>
<style>
#parentDIV {
position: relative;
height: 250px;
width: 60%;
}
#myDIV {
position: absolute;
background-color: lightblue;
inset-block: 10px 50px;
writing-mode: vertical-rl;
}
div {
border: solid black 1px;
}
</style>
</head>
<body>
<h1>inset-block 属性</h1>
<p>在这里,inset-block 属性受 CSS writing-mode 属性的影响。</p>
<div id="parentDIV">
<div id="myDIV">
<p>这个 DIV 的大小由块方向开始处与父 DIV 元素之间的 10 像素距离,以及结束处与父元素之间的 50 像素距离决定。</p>
</div>
</div>
</body>
</html>