Skip to content

WhiteBlo/123

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

123

<!doctype html>

<title>Document</title> <style> *{ margin:0; padding: 0; } div{ position: relative; width: 600px; height: 86px; margin:50px auto; overflow: hidden; border: 2px solid red; /*display: flex; justify-content:flex-start; flex-direction: row; flex-wrap: nowrap;*/ }
ul{
    list-style: none;
    display: block;
    position: absolute; 
    left: 0;
    top: 0;
}
li{
    float:left;
    width: 200px;
}

</style>
<script> var oDiv = document.getElementById('img'); var oUl = document.getElementById('ul'); var oImg = document.getElementsByTagName('li'); var iLeft = 0; var timer = null; var iWidth = 200; var iTarget = -(iWidth * oImg.length - 600); timer = setInterval(function () { iLeft --; if (iLeft <= iTarget) { clearInterval(timer); return; } oUl.style.left = iLeft + 'px'; },17); </script>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors