CSS旋轉圖片
阿新 • • 發佈:2019-02-16
doc width har uil mic itl term text style
2、實現結果
CSS旋轉圖片
1、實現源碼
<!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>
2、實現結果
再分享一下我老師大神的人工智能教程吧。零基礎!通俗易懂!風趣幽默!還帶黃段子!希望你也加入到我們人工智能的隊伍中來!https://blog.csdn.net/jiangjunshow
CSS旋轉圖片