Last active
June 7, 2017 14:36
-
-
Save galkasv/a617cff0e2955a3e79ccac5e4ca8ed6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Как разместить 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