运行 ❯
获取您
自己
的网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> #myDIV { width: 500px; background-color: lightblue; overflow: auto; border: 1px solid black; animation: mymove 5s infinite; } @keyframes mymove { 50% {min-height: 400px;} } </style> </head> <body> <h1>Animation of min-height</h1> <p>Change the min-height from "none" to "400px", and back to "none":<p> <div id="myDIV"> <p>This DIV element does not have a pre-defined height.</p> <p>An animation will change the min-height, from "none" to "400px".</p> </div> </body> </html>