运行 ❯
获取您的
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> #myDiv { background-color: lightblue; border: solid black 1px; height: 300px; writing-mode: vertical-rl; padding-inline: 10px 100px; } </style> </head> <body> <h1>The padding-inline Property</h1> <p>Here, the padding-inline property is affected by the CSS writing-mode property.</p> <div id="myDiv"> <p>This DIV has a padding of 10 pixels from the start in the inline direction, and 100 from the end.</p> </div> </body> </html>