HTML
- 9 ответов
- 0 вопросов
4
Вклад в тег
.logo{
width: 100px;
height: 20px;
position: relative;
background-size: cover;
background-image: url(logo.png);
}
.logo__loaded{
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
width: 0%;
background-size: cover;
background-image: url(logo2.png);
}
<div class="logo">
<div class="logo__loaded" style="70%"></div>
</div
if ($(window).width() >= 992) {
$.ajax({
url: "load.html",
success: function (data) {
$('div.upload').html(data);
}
});
} else {
$.ajax({
url: "main.html",
success: function (data) {
$('div.upload').html(data);
}
});
}
<script type="text/javascript" src="js/jquery.multiscroll.min.js"></script>
function fixSize(){
if($(window).width() > 757) {
$('#sidebar').css({
'height': $(".post").height()
});
} else [
$('#sidebar').css({
'height': 'auto'
});
}
}
$(window).resize(fixSize);
fixSize();
<article class="item">
<header class="item-header">
<img>
<h3></h3>
</header>
<div class="item-body">
<p></p>
</div>
</article>
<main>
, если можно - то <div class="item-body"> заменить на <main class="item-body">
<footer>