Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Как разместить html5 баннер на сайт:
Прописываем путь src в (между) тегом iframe.
<iframe src="http://www.site.com/banner_html5.html" width="579" height="260" frameborder="0"></iframe>
========================================================================================================
Пример 2
========================================================================================================
<div id="ad" style="width:100%;height:90px;">
<iframe
src="http://site.com/путь до баннера/banner_html5.html"
border="0"
scrolling="no"
allowtransparency="true"
width="100%"
height="100%"
style="border:0;">
</iframe>
</div>
========================================================================================================
Пример 3
========================================================================================================
<div class="top-banner" style="width:100%;">
<iframe src="assets/libs/banner/top_banner_resp.html" width="100%" height="100%" frameborder="0" scrolling="no" allowtransparency="true"></iframe>
</div>
================================
.top-banner
max-height: 310px
overflow: hidden
background-size: cover
<div class="top-banner" style="width:100%;">
<iframe src="assets/libs/banner/top_banner_resp.html" width="100%" height="310px" frameborder="0" scrolling="no" allowtransparency="true"></iframe>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment