簡體   English   中英

如何使具有外部內容的 DIV 在移動設備上響應?

[英]How to make DIV with external content responsive on mobile?

我正在嘗試在移動頁面上調用 webamp 播放器,但我不知道如何讓這個外部應用程序在兩個平台(桌面、移動)上響應:(

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title>CodePen - WebAmp with Skin</title>
  
<head>

<body>
<!-- partial:index.partial.html -->
<div id="app"></div>
<script src="https://unpkg.com/webamp"></script>
<script>new Webamp({
    initialTracks: [{
        metaData: {
            artist: "The Boy is Mine",
            title: "Brandy & Monica",
        },
      
      // Be careful because mp3s use up a lot of space on your            account.
        url: "https://sadhost.neocities.org/music/Boy.mp3",
    }],
    
    initialSkin: {
        url: 
      // Find skins https://skins.webamp.org - download them and          host them on your website!
     "https://sadhost.neocities.org/etc/TetAtck.wsz"
    },}).renderWhenReady(app);</script>
<!-- partial -->
  
</body>
</html>

伙計們,請幫忙!

<meta name="viewport" content="width=device-width, initial-scale=1.0"> doesnt helped

使用媒體查詢用於設置多個設備的寬度,例如移動設備、標簽頁、筆記本電腦、桌面設備等。

例如:

@media (max-width: 720px) {
     //here are your styling attributes for below 720px width devices
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM