0

我在我的移动网站上为广告使用Facebook受众网络(MobileWeb-beta)。但是,320x50的html源代码不会像应该那样在移动屏幕的宽度上显示添加,它会显示较小的广告(如图所示)。Facebook移动网络广告显示问题

我使用FB上的网站给出的代码: <div class="fb-ad" data-placementid="xxxxxx-xxxxxx" data-format="320x50" data-testmode="true"> </div>

有什么建议? 谢谢!

Ad display Phone Screenshot

回答

0

你有你的视口设置?将此添加到您的<head>应该解决它。

<meta name="viewport" content="width=device-width, initial-scale=1.0"> 
+0

谢谢您的回复,非常感谢。 但我使用'window.innerWidth'来获取屏幕宽度,使用它可以改变屏幕的宽度。 – WajahatAliKhan