Home >Web Front-end >HTML Tutorial >Looking for a simple pure CSS3 implementation_html/css_WEB-ITnose
<html><body> <div>点击这里就使div的高度往下渐变至浏览器的高度</div></body></html>
Does CSS3 have this function? Is CSS3 more powerful than JS?
It is possible to execute JS on expressions in styles under IE
I have implemented one that is not very satisfactory
<html><head><style>#div { width: 100px; margin: 5px 0; padding: 5px; color: white; background-color: #ED8029; text-align: right; border-radius: 5px;}#div:active{ height:500px;}.ease { -webkit-transition: height 0.5s ease; -moz-transition: height 0.5s ease; -o-transition: height 0.5s ease; -ms-transition: height 0.5s ease; transition: height 0.5s ease;}</style></head><body> <div id="div" class="ease">ease</div></body></html>