css3-transform

来源:互联网 发布:js 数组 map方法 编辑:程序博客网 时间:2024/06/05 20:27
<!DOCTYPE html><html><head><style> div{width:100px;height:75px;background-color:yellow;border:1px solid black;}div#div2{transform:rotate(30deg);-ms-transform:rotate(30deg); /* IE 9 */-moz-transform:rotate(30deg); /* Firefox */-webkit-transform:rotate(30deg); /* Safari and Chrome */-o-transform:rotate(30deg); /* Opera */}</style></head><body><div>你好。这是一个 div 元素。</div><div id="div2">你好。这是一个 div 元素。</div></body></html>