旋转图片CSS代码

前端之家收集整理的这篇文章主要介绍了旋转图片CSS代码前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

下面是编程之家 jb51.cc 通过网络收集整理的代码片段。

编程之家小编现在分享给大家,也给大家做个参考。

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    <html xmlns="http://www.w3.org/1999/xhtml">  
    <head>  
    <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>  
    </head>  
      
    <body style="width:99%; height:100%;">  
       <div id="body_div" style="text-align:center; vertical-align:middle;">  
            <img src="cat.jpg" id="div_img" width="500" height="400"/>  
       </div>  
    </body>  
    </html>  

@H_404_8@

以上是编程之家(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。

如果觉得编程之家网站内容还不错,欢迎将编程之家网站推荐给程序员好友。

猜你在找的HTML相关文章