-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (69 loc) · 2.14 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="author" content="Pranab">
<title>object-fit-IE Demo</title>
<link rel="stylesheet" href="demo.css">
</head>
<body>
<h1>object-fit-IE Demo</h1>
<p class="para"></p>
<div class="content">
<div class="values">
<span>object-fit: </span>
<select name="objectFitValues" id="objectFitWrapper">
<option value="cover" selected>Cover</option>
<option value="contain">Contain</option>
<option value="fill">Fill</option>
<option value="none">None</option>
<option value="scale-down">Scale-down</option>
</select>
<span>object-position-x: </span>
<select name="objectPosXValues" id="objectPosXWrapper">
<option value="left" selected>Left</option>
<option value="center">Center</option>
<option value="right">Right</option>
</select>
<span>object-position-y: </span>
<select name="objectPosYValues" id="objectPosYWrapper">
<option value="top">Top</option>
<option value="center" selected>Center</option>
<option value="bottom">Bottom</option>
</select>
</div>
<div class="first">
<div class="image">
<img src="image/1.jpg" alt="1" class="img1">
<p class="txt">without js</p>
</div>
<div class="image img">
<p class="txt top">
object-fit: <span class="fit"></span><br>
object-position: <span class="x"></span> <span class="y"></span>
</p>
<img src="image/1.jpg" alt="1" class="img1">
<p class="txt">with js</p>
</div>
</div>
<div class="second">
<div class="image">
<img src="image/2.jpg" alt="2" class="img2">
<p class="txt">without js</p>
</div>
<div class="image img">
<p class="txt top">
object-fit: <span class="fit"></span><br>
object-position: <span class="x"></span> <span class="y"></span>
</p>
<img src="image/2.jpg" alt="2" class="img2">
<p class="txt">with js</p>
</div>
</div>
</div>
<script src="object-fit-ie.js" type="text/javascript"></script>
<script src="demo.min.js"></script>
</body>
</html>