-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
新增 播放器响应式支持(播放器根据不同设备的屏幕大小设置不同的屏幕高度和宽度) 新增 播放器下方友好提示(不支持H5播放的视频可通过这里引导回源站播放) 优化 播放器引用方式(先 iframe 后 embed) 优化 核心代码(更简洁更高效)
- Loading branch information
1 parent
0338d7c
commit 02777a7
Showing
3 changed files
with
103 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
#smartideo { z-index: 0; text-align: center; background: #CCC; line-height: 0; text-indent: 0; } | ||
#smartideo embed, #smartideo iframe { padding: 0; margin: 0; } | ||
#smartideo .link { background: url(play.png) no-repeat center center; background-size: 15%; display: block; text-indent: -100000px; } | ||
#smartideo .player { width: 100%; height: 500px; } | ||
#smartideo .tips { background: #f2f2f2; text-align: center; height: 32px; line-height: 32px; font-size: 12px; } | ||
#smartideo .tips a { text-decoration: none; } | ||
|
||
@media screen and (max-width:959px){ | ||
#smartideo .player { height: 450px; } | ||
} | ||
@media screen and (max-width:767px){ | ||
#smartideo .player { height: 400px; } | ||
} | ||
@media screen and (max-width:639px){ | ||
#smartideo .player { height: 350px; } | ||
} | ||
@media screen and (max-width:479px){ | ||
#smartideo .player { height: 250px; } | ||
} |