2015-11-28 102 views
0

如何聯機顯示MediaElement.js音頻播放器? (被文字包圍)。顯示mediaelement.js音頻播放器聯機

我已經嘗試過失敗編輯CSS here on JS Fiddle到:

CSS

.mejs-container{ 
    position: relative; /*I tried changing this */ 
    clear: none; /* and added this */ 
} 
.mejs-clear { 
    clear:both; /* tried "none" */ 
} 

HTML

I want the player ON the same line with the second line of text<br/> 
This Line, here -> <audio id="mejs-player" src="http://mediaelementjs.com/media/AirReview-Landmarks-02-ChasingCorporate.mp3" type="audio/mp3" controls="controls"></audio> <br/> 
Not This Line. 

的JavaScript

$('#mejs-player').mediaelementplayer({ 
    // API options 
    features: ['playpause','progress','duration','tracks'], 
    audioWidth: 200, 
    alwaysShowControls: true, 
}); 

回答