Home >Web Front-end >HTML Tutorial >Looking for a simple pure CSS3 implementation_html/css_WEB-ITnose

Looking for a simple pure CSS3 implementation_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:18:23870browse

<html><body>    <div>点击这里就使div的高度往下渐变至浏览器的高度</div></body></html>


Reply to discussion (solution)

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>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn