Home > Web Front-end > HTML Tutorial > Share an HTML+css image enlargement effect code

Share an HTML+css image enlargement effect code

零下一度
Release: 2017-05-01 10:28:42
Original
6273 people have browsed it

How to enlarge the picture, the editor will introduce an example below.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "m.sbmmt.com/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
*
{
	margin:0px;
	padding:0px;
}
#pHead
{
	display: block;
    height: 220px;
    overflow: hidden;
    width: 350px;
}
#pHead:hover img 
{
	transform: scale(1.3);
    transition: all 1s ease 0s;
	-webkit-transform: scale(1.3);
	-webkit-transform: all 1s ease 0s;
}
</style>
</head>

<body>
	<p id="pHead">
    	<img class="Tao"src="image/Thomson.jpeg" />
    </p>
</body>
</html>
Copy after login

The above is the detailed content of Share an HTML+css image enlargement effect code. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template