Skip to content

Commit 42c13bc

Browse files
committed
修改样式
1 parent 7df36ab commit 42c13bc

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

assets/hivideo.css

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
.hi-video-wrapper{
77
color: #fff;
88
background: rgba(0, 0, 0, 0.75);
9-
width: 800px;
10-
height: 300px;
119
position: relative;
1210
}
1311

@@ -40,7 +38,7 @@
4038
position: absolute;
4139
left: 0;
4240
bottom: 0;
43-
z-index: 10000;
41+
z-index: 2147483647;
4442
padding: 10px 0;
4543
}
4644

@@ -62,7 +60,7 @@
6260

6361
.hi-video-controlbar .video-play{
6462
width: 5%;
65-
min-width: 20px;
63+
min-width: 5px;
6664
text-align: center;
6765
cursor: pointer;
6866
vertical-align: middle;
@@ -93,8 +91,8 @@
9391
}
9492

9593
.hi-video-controlbar .video-slider{
96-
width: 70%;
97-
min-width: 20px;
94+
width: 65%;
95+
min-width: 10px;
9896
position: relative;
9997
z-index: 0;
10098
display: inline-block;
@@ -181,7 +179,7 @@
181179

182180
.hi-video-controlbar .video-mute{
183181
width: 5%;
184-
min-width: 20px;
182+
min-width: 5px;
185183
text-align: center;
186184
cursor: pointer;
187185
}
@@ -196,12 +194,13 @@
196194

197195
.hi-video-controlbar .video-volume{
198196
width: 15%;
199-
min-width: 20px;
197+
min-width: 10px;
198+
overflow: hidden;
200199
}
201200

202201
.hi-video-controlbar .video-fullscreen{
203-
width: 5%;
204-
min-width: 20px;
202+
width: 10%;
203+
min-width: 5px;
205204
text-align: center;
206205
cursor: pointer;
207206
}

index.html

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,23 @@
66
<link rel="stylesheet" href="assets/hivideo.css" />
77
<script type="text/javascript" src="hivideo.js"></script>
88
<style type="text/css">
9+
.main-wrap{
10+
margin: 0 auto;
11+
min-width: 320px;
12+
max-width: 640px;
13+
}
914

15+
.main-wrap video{
16+
width: 100%;
17+
}
1018
</style>
1119
</head>
1220
<body>
13-
<video ishivideo="true" autoplay="true" isrotate="true" autoHide="false">
14-
<source src="assets/video.mp4" type="video/mp4">
15-
<source src="https://media.w3.org/2010/05/sintel/trailer.mp4" type="video/mp4">
16-
</video>
17-
21+
<div class="main-wrap">
22+
<video ishivideo="true" autoplay="true" isrotate="true" autoHide="false">
23+
<source src="http://www.html5videoplayer.net/videos/madagascar3.mp4" type="video/mp4">
24+
<!--<source src="https://media.w3.org/2010/05/sintel/trailer.mp4" type="video/mp4">-->
25+
</video>
26+
</div>
1827
</body>
1928
</html>

0 commit comments

Comments
 (0)