且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在旋转大分区时避免滚动

更新时间:2023-02-10 10:57:49

(文件).ready。

旋转时,滚动变为可见。也许这是一个简单的问题,但答案很赞赏.tnx





<!DOCTYPE HTML&GT; 
< html>
< head>
< meta http-equiv = Content-Type content = text / html; charset = UTF-8 />
< title> jQuery Rotate < / title >
< script type = text / javascript src = jquery-1.9.1.min.js>< / script>
< script src = Jquery.rotate.js>< / script&gt ;

< / head >
< body>
< div id = Div1 class = rotation style = width:100%; height:100%; margin-removed auto; margin-removed auto;>
< img src = Back.jpg />
< / div >
< script type = text / javascript>


document )。ready( function (){
document .body.style.backgroundColor = Black;


' #Div1')。 ( 1000 )。animate({rotate:' - 20deg '}, 2000 );
});

< / script>
< / body >
< / html > 跨度>


Hi, I''m designing a website,in the first page I want to rotate a div when $(document).ready.
when it rotates, scrolls become visible.maybe it''s a simple question, but answers are appreciated.tnx


<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>jQuery Rotate</title>
    <script type="text/javascript" src="jquery-1.9.1.min.js"></script>
    <script src="Jquery.rotate.js"></script>

</head>
<body>
    <div id="Div1" class="rotation" style="width: 100%; height: 100%; margin-removed auto; margin-removed auto;">
        <img src="Back.jpg" />
    </div>
    <script type="text/javascript">
        $(document).ready(function () {
            document.body.style.backgroundColor = "Black";
            $('#Div1').delay(1000).animate({ rotate: '-20deg'}, 2000);
        });

    </script>
</body>
</html>

(document).ready.
when it rotates, scrolls become visible.maybe it''s a simple question, but answers are appreciated.tnx


<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>jQuery Rotate</title>
    <script type="text/javascript" src="jquery-1.9.1.min.js"></script>
    <script src="Jquery.rotate.js"></script>

</head>
<body>
    <div id="Div1" class="rotation" style="width: 100%; height: 100%; margin-removed auto; margin-removed auto;">
        <img src="Back.jpg" />
    </div>
    <script type="text/javascript">


(document).ready(function () { document.body.style.backgroundColor = "Black";


('#Div1').delay(1000).animate({ rotate: '-20deg'}, 2000); }); </script> </body> </html>