dtkmejg127475 2014-12-09 09:36
浏览 46

如何划分包含在PHP中的页脚和标题?

I'm using a footer included in a php document, but it is going over the php page content.

Here is an example: http://screencast.com/t/L69p1gm2

And this is the code which I'm using:

<?php include 'header.php' ?>
<div class="kalendar">
  <iframe class="kalendarframe" src="link to the calendar"&amp;color=%23711616&amp;ctz=Europe%2FBelgrade" style=" border:solid 1px #777 " width="100%" frameborder="0" scrolling="no"></iframe>
</div>
<?php include 'footer.php' ?>

I've tried to do something with css but without any positive results..

What could be a problem here?

Why is the footer going over the page?

Thanks

Here is the footer.php (which is empty):

<div id="footer">
</div>
</body>
</html>

And here is my css:

html, body{
            background-color: #fff;
            background-repeat:no-repeat;
            background-attachment:fixed;
            background-size:cover;
            width:100%;
            margin:0px 0px 0px 0px;
            padding:0px;
            position:absolute;
        }


        /* KOMPLETAN HEADER SA MENIJIMA */

        header{
            padding-top:0px;
            text-align:;
            height:40px;
            margin-top:0px;
            margin-left:-10px;
            width:101%;
            position:absolute;
            top:0;
            left:0;
            background-color:#424242;
            opacity:0.9;
            position:fixed;
            font-family: tahoma;
        }


        header .logout a{
            margin-top: 0px;
            padding-right:150px;
            color:white;
            text-transform:uppercase;
            font-size: 14px;
            float:right;
            text-decoration:none;
            font-family: 'Raleway', sans-serif;
        }

        /*  --------------------------  MENI -----------------------*/

        #menu{
            width:960px;
            color:#fff;
            font-size:12px;
            text-transform:uppercase;
            margin: 0 auto;

        }

        #menu ul li {
            display: inline; 
        }

        #menu li a{
            font-family: 'Raleway', sans-serif;
            margin-right: 15px;
            color:#fff;
            text-transform:uppercase;
            font-size: 14px;
            text-decoration:none;

        }

        #menu li a:hover{
            color: red;
            text-decoration:none;
            text-align: center;

        }

        /* -----------------------------------------------------------*/

        /* WRAPPER  SADRZAJ STRANICE */

        #wrapper{
            width:960px;
            margin:0 auto;

        }


        #heading{
            text-align:center;
        }

        #lijevi{
            width: 635px;
            float:left;


        }

        #desni{
            width:310px;
            float:right;
        }

        #mediaContacts{
            float:left;
        }

        #smmSchedule{
            float:right;
        }

        #calls{
            float:left;
        }

        /*iframe{
            border-radius: 15px;
            aborder: 1px solid black;
            -webkit-box-shadow: 2px 7px 81px -5px rgba(0,0,0,0.75);
            -moz-box-shadow: 2px 7px 81px -5px rgba(0,0,0,0.75);
            box-shadow: 2px 7px 81px -5px rgba(0,0,0,0.75);
        }*/

        #table_button{
            /*width:150px;
            height:40px;
            margin:0 auto;
            opacity:0.9;*/

        }

        /* ----------------  FOOTER --------------*/
         #footer{
            margin-top:0px;
            margin-left:-10px;
            height:200px;
            width:101%;
            background-color: #000;
            opacity:0.8;
        }

        /*---------------- RESPONSIVE DESIGN STYLING ------------------------*/

        @media only screen and (min-width: 310px) and (max-width: 960px) {
         body {

         }

         #wrapper{
            width:310px;
            height:1600px;
         }

         #heading{
            margin:0 auto;
         }

         #lijevi{
            width:310px;


         }

         #desni{
            width:310px;
            margin-left:0px;
            float:none;
         }
        }
        /* ---------------------------------------------------------------------*/

        /* KALENDAR STYLING */

        .kalendarframe{
            height:1000px;
            padding-top:80px;

            /*margin-bottom:0px;*/
        }

        .kalendar{
            width:100%;
            height:1000px;
        }


        /* ---------------------*/
  • 写回答

2条回答 默认 最新

  • 普通网友 2014-12-09 09:41
    关注

    Did you also try setting height for the iframe?

    评论

报告相同问题?

悬赏问题

  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100