x
1
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<style>
6
div {
7
width: 100px;
8
height: 75px;
9
background-color: red;
10
border: 1px solid black;
11
}
12
13
div#div2 {
14
transform: skew(30deg, 20deg);
15
transform: skew(30deg, 20deg);
16
/* IE 9 */
17
transform: skew(30deg, 20deg);
18
/* Safari and Chrome */
19
}
20
</style>
21
</head>
22
<body>
23
24
<div>Hello. This is a DIV element.</div>
25
26
<div id="div2">Hello. This is a DIV element.</div>
27
28
</body>
29
</html>