Home > Web Front-end > HTML Tutorial > CSS旋转图片_html/css_WEB-ITnose

CSS旋转图片_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:34:56
Original
1178 people have browsed it

CSS旋转图片


1、实现源码

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>CSS旋转图片</title><style type="text/css">	#div_img{		margin: 100px auto 0;		transform:rotate(30deg);		-moz-transform:rotate(30deg);		-webkit-transform:rotate(30deg);		-o-transform:rotate(30deg);		filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);	}</style>   <div id="body_div" style="text-align:center; vertical-align:middle;">   		<img  src="cat.jpg" id="div_img"    style="max-width:90%"  style="max-width:90%" alt="CSS旋转图片_html/css_WEB-ITnose" >   </div>
Copy after login

2、实现结果


版权声明:本文为博主原创文章,未经博主允许不得转载。

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