怎么才能将图片放大,下面小编就来介绍一个实例。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.php.cn/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="www.php.cn/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>
上一篇:
你必须了解的三个CSS小技巧
下一篇:
css3点击爆炸下落的特效代码
友情提示:垃圾评论一律封号...