页脚重复自己

时间:2013-05-21 20:19:53

标签: php html repeat

我正在设计this website,我需要将它作为.php与数据库进行通信并启动一些倒计时时钟(尚未启动)。该页面最初是.html,一切都很完美,但由于某些原因,我将其更改为.php,页脚不断重复。代码在我的编辑器上没问题,我将加载页面,在编辑器上重新加载文件,代码以某种方式单独出现在那里! 现在没有任何PHP代码,我只是改变了文件的扩展名。如果您访问相同的网址但.html版本,您会看到一切正常。可能导致这种情况的原因是什么?

提前感谢您的帮助!

修改

整个HTML代码:

<!DOCTYPE HTML>
<html>
<head>
    <title>Aqua</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,900,300italic" rel="stylesheet" />
    <script src="js/jquery-1.8.3.min.js"></script>
    <script src="css/5grid/init.js?use=mobile,desktop,1000px&amp;mobileUI=1&amp;mobileUI.theme=none&amp;mobileUI.titleBarOverlaid=1&amp;viewport_is1000px=1060"></script>
    <script src="js/jquery.dropotron-1.2.js"></script>
    <script src="js/init.js"></script>
    <noscript>
        <link rel="stylesheet" href="css/5grid/core.css" />
        <link rel="stylesheet" href="css/5grid/core-desktop.css" />
        <link rel="stylesheet" href="css/5grid/core-1200px.css" />
        <link rel="stylesheet" href="css/5grid/core-noscript.css" />
        <link rel="stylesheet" href="css/style.css" />
        <link rel="stylesheet" href="css/style-desktop.css" />
    </noscript>
    <!--[if lte IE 8]><link rel="stylesheet" href="css/ie8.css" /><![endif]-->

    <!-- Photo gallery stuff -->
    <link rel="stylesheet" href="css/slideshow/slideshow.css">
    <style>
        .slideshow { margin-left: 24.45%; }
    </style>
    <script src="js/mootools-1.3.2-core.js"></script>
    <script src="js/mootools-1.3.2.1-more.js"></script>
    <script src="js/slideshow.js"></script>

    <script>
    window.addEvent('domready', function(){
        var data = { 'pic07.jpg': {/*No captions, thumbnails or anything*/}, 'pic06.jpg': {}, 'pic10.jpg': {}, 'pic02.jpg': {}};
        new Slideshow('slideshow', data, { controller: false, thumbnails: false, loader: false, height: 400, width: 600, hu: 'images/', transition: 'back:in:out'});
    });
</script>
    <!--End-->
</head>
<body class="homepage">
    <!-- Header Wrapper -->
        <div id="header-wrapper">
            <div class="5grid-layout">
                <div class="row">
                    <div class="12u">

                        <!-- Header -->
                            <section id="header">

                                <!-- Logo -->
                                    <img class="logo" src="images/aqua.jpg">

                                <!-- Nav -->
                                    <nav id="nav" class="mobileUI-site-nav">
                                        <ul>
                                            <li class="current_page_item"><a href="index.html">Home</a></li>
                                            <li><a href="photos.html">Photos</a></li>
                                            <li><a href="videos.html">Videos</a></li>
                                            <li><a href="store.html">Store</a></li>
                                            <li><a href="about.html">About Us</a></li>
                                            <li><a href="contact.php">Contact</a></li>
                                        </ul>
                                    </nav>
                            </section>

                    </div>
                </div>
                <div class="row">
                    <div class="12u">
                        <!-- Banner -->
                            <section id="banner">
                                <div id="slideshow" class="slideshow"></div>
                            </section>
                    </div>
                </div>
                <div class="row">
                    <div class="12u">

                            <!-- Intro -->
                            <section id="intro">
                                <div class="actions">
                                    <a href="#" class="button button-big">Get Started</a>
                                    <a href="#" class="button button-alt button-big">Learn More</a>
                                </div>

                            </section>
                    </div>
                </div>
            </div>
        </div>

    <!-- Footer Wrapper -->
        <div id="footer-wrapper">
            <!-- Footer -->
                <section id="footer" class="5grid-layout">
                    <div class="row">
                        <div class="4u">
                            <section>
                                <header>
                                    <h2>Links</h2>
                                </header>
                                <ul class="divided">
                                    <li><a href="events.php">Events/Tickets</a></li>
                                    <li><a href="photos.html">Photos</a></li>
                                    <li><a href="videos.html">Videos</a></li>
                                    <li><a href="store.html">Store</a></li>
                                    <li><a href="about.html">About Us</a></li>
                                    <li><a href="contact.php">Contact</a></li>
                                </ul>
                            </section>
                        </div>
                        <div class="4u">

                            <section>
                                <header>
                                    <h2>Connect with us</h2>
                                </header>
                                <ul class="social">
                                    <li class="facebook"><a href="#" class="icon48 icon48-1">Facebook</a></li>
                                    <li class="twitter"><a href="http://twitter.com/n33co" class="icon48 icon48-2">Twitter</a></li>
                                </ul>
                                <ul class="contact">
                                    <li>
                                        <h3>Address</h3>
                                        <p>
                                            Aqua, LLC<br />
                                            39 Old Ridgebury Road<br />
                                            Danbury, CT 06810
                                        </p>
                                    </li>
                                    <li>
                                        <h3>Phone</h3>
                                        <p>(800) 000-0000</p>
                                    </li>
                                </ul>
                            </section>

                        </div>
                    </div>
                    <div class="row">
                        <div class="12u">

                            <!-- Copyright -->
                                <div id="copyright">
                                    <ul class="links">
                                        <li>&copy; Aqua, LLC</li>
                                        <li>Images: <a href="http://facebook.com/DreametryDoodle">Dreametry Doodle</a> + <a href="http://iconify.it">Iconify.it</a></li>
                                        <li>Design: <a href="http://html5up.net">HTML5 Up!</a> + <a href="http://daytaro.com">Daytaro</a></li>
                                    </ul>
                                </div>
                        </div>
                    </div>
                </section>
        </div>
</body>
</html>

之后它的重复非常笨拙。它可能是FTP服务器,我使用Koding(不要问)这个,它通过FTP连接到我的服务器。我也尝试过使用FileZilla(在重新上传之前没有删除文件)但是没有做任何事情。

1 个答案:

答案 0 :(得分:0)

确保在上传文件之前删除该文件。有些FTP客户端会用一些额外的代码写一遍......

相关问题