Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 如何在windows 8应用程序中居中对齐广告_Css_Windows 8_Windows 8.1 - Fatal编程技术网

Css 如何在windows 8应用程序中居中对齐广告

Css 如何在windows 8应用程序中居中对齐广告,css,windows-8,windows-8.1,Css,Windows 8,Windows 8.1,这是我在windows 8/8.1应用程序中居中对齐广告的代码 <div id="myAd" style="position: absolute; bottom: 0px; left: auto; width: 728px; height: 90px; z-index: 1" data-win-control="MicrosoftNSJS.Advertising.AdControl" data-win-options="{applicationId: 'd25517cb

这是我在windows 8/8.1应用程序中居中对齐广告的代码

<div id="myAd" style="position: absolute; bottom: 0px; left: auto; width: 728px; height: 90px; z-index: 1"
     data-win-control="MicrosoftNSJS.Advertising.AdControl"
     data-win-options="{applicationId: 'd25517cb-12d4-4699-8bdc-52040c712cab', adUnitId: '10043105'}">
</div>

但是我无法成功对齐。让我们看看你能做些什么


感谢使用
margin:0 auto
div水平居中

<div id="myAd" style="position: absolute; bottom: 0px; margin: 0 auto; width: 728px; height: 90px; z-index: 1"
     data-win-control="MicrosoftNSJS.Advertising.AdControl"
     data-win-options="{applicationId: 'd25517cb-12d4-4699-8bdc-52040c712cab', adUnitId: '10043105'}">
</div>


它不起作用。它是左对齐的。我要试试你的Construct 2插件。实际上我忘了使用它,只是在看到你的个人资料图片后我才想起它。谢谢!!!!!!哈哈。这是一个Contruct 2游戏?然后,是的,使用插件!对于稍后阅读此帖子的读者,在这里查看我的插件:是的,它是construct 2游戏。但插件对我来说至少没有预期的效果。发生的事情是,我可以添加没有问题的广告,但我制作了1920*1080分辨率的游戏,如果我在分辨率为1366*768的设备上玩游戏,广告会被裁剪成更小的一个。但是,当我玩它时,分辨率为1920*1080,它会变小看起来很好。无论如何谢谢!!!