IOS safari html5视频播放器控制播放按钮

时间:2015-01-31 12:58:29

标签: ios html5 ipad html5-video mobile-safari

我正在开发一个带有cordova的移动应用程序,其中包括IOS。在这个应用程序中我使用HTML5视频播放器,但在我的iPhone和我的iPad上,控件位于播放按钮上。我仍然可以按下播放按钮,但寻求比平常更难,而且看起来很奇怪。

controls over play-button

有没有人知道为什么会这样做以及我可以做些什么来解决这个问题?感谢。

1 个答案:

答案 0 :(得分:0)

编辑lib / ionic / css / ionic.css并删除/注释掉input[range]的冲突样式属性请记住,您必须在ionic.min.css中复制prod构建中的更改和/或者如果你更新离子骨架。显然,如果您正在使用或计划使用Ionic框架的范围输入控件样式,那么您将不得不提出一些不那么直率的东西。

ionic.css

/**
 * Range
 * --------------------------------------------------
 */

/*input[type="range"] {
  display: inline-block;
  overflow: hidden;
  margin-top: 5px;
  margin-bottom: 5px;
  padding-right: 2px;
  padding-left: 1px;
  width: auto;
  height: 43px;
  outline: none;
  background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ccc), color-stop(100%, #ccc));
  background: linear-gradient(to right, #ccc 0%, #ccc 100%);
  background-position: center;
  background-size: 99% 2px;
  background-repeat: no-repeat;
  -webkit-appearance: none; }
  input[type="range"]::-webkit-slider-thumb {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    -webkit-appearance: none;
    border: 0; }
  input[type="range"]::-webkit-slider-thumb:before {
    position: absolute;
    top: 13px;
    left: -2001px;
    width: 2000px;
    height: 2px;
    background: #444;
    content: ' '; }
  input[type="range"]::-webkit-slider-thumb:after {
    position: absolute;
    top: -15px;
    left: -15px;
    padding: 30px;
    content: ' '; }

.range {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  -moz-align-items: center;
  align-items: center;
  padding: 2px 11px; }
  .range.range-light input::-webkit-slider-thumb:before {
    background: #ddd; }
  .range.range-stable input::-webkit-slider-thumb:before {
    background: #b2b2b2; }
  .range.range-positive input::-webkit-slider-thumb:before {
    background: #387ef5; }
  .range.range-calm input::-webkit-slider-thumb:before {
    background: #11c1f3; }
  .range.range-balanced input::-webkit-slider-thumb:before {
    background: #33cd5f; }
  .range.range-assertive input::-webkit-slider-thumb:before {
    background: #ef473a; }
  .range.range-energized input::-webkit-slider-thumb:before {
    background: #ffc900; }
  .range.range-royal input::-webkit-slider-thumb:before {
    background: #886aea; }
  .range.range-dark input::-webkit-slider-thumb:before {
    background: #444; }

.range .icon {
  -webkit-box-flex: 0;
  -webkit-flex: 0;
  -moz-box-flex: 0;
  -moz-flex: 0;
  -ms-flex: 0;
  flex: 0;
  display: block;
  min-width: 24px;
  text-align: center;
  font-size: 24px; }

.range input {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -moz-box-flex: 1;
  -moz-flex: 1;
  -ms-flex: 1;
  flex: 1;
  display: block;
  margin-right: 10px;
  margin-left: 10px; }

.range-label {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -moz-box-flex: 0;
  -moz-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  display: block;
  white-space: nowrap; }

.range-label:first-child {
  padding-left: 5px; }

.range input + .range-label {
  padding-right: 5px;
  padding-left: 0; }
*/
相关问题