在两列页面中使用div标签(如iframe) [英] use a div tag like an iframe in a two column page
本文介绍了在两列页面中使用div标签(如iframe)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
正在尝试用PHP设计网页
试图避免使用"IFRAME".
我一直在使用"DIV"标签,但无法让它们显示内容并使左侧保持静态.
使用div作为目标来显示链接内容的任何帮助将不胜感激.
到目前为止,这就是我所拥有的
Am trying to design a web page in PHP
What am trying to avoid is using "IFRAME".
I have been working with "DIV" tags but cant get them display the content and having the left remain static.
any help to use div as a target to display contents from links will be appreciated.
so far this is what I have
<pre lang="xml"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Missions Page</title>
<link href="../stylesheet/divstyle.css" rel="stylesheet" type="text/css" />
</head>
<?php
//check link that is selected
if (isset($_GET[''Healing'']))
{
$healing = $_GET[''../forms/missions.php''];
$healing = "";
}
elseif (isset($_GET[''Spiritual'']))
{
$healing = "";
$spiritual = $_GET[''../forms/spiritual.php''];
}
else
{
$healing = "";
$spiritual = "";
}
?>
<body>
<div id="wrapper">
<div id="branding">branding</div>
<div id="siteNav">
<h5><font color="#0066FF" size="+2" style="z-index:auto">Ministry</h5></font><br />
<h5><strong><font color="#0066FF"><a href="../forms/contact.php">Healing</a></font></strong></h5><br />
<h3><strong><a href="../forms/spritual.php">Spiritual Life:</a></strong></h3><br />
<h3><strong><a href="../forms/financial.php" target="mainContent">Financial Freedom</a></strong></h3><br />
<h3><strong><a href="../forms/prophecy.php" target="mainContent">Prophecy</a></strong></h3><br />
<h3><strong><a href="../forms/fellowship.php" target="mainContent">Pastors Fellowship</a></strong></h3><br />
</div>
<div id="mainContent">
The mission and vision of <strong><font color="#993399">Fountain of life</strong></font> is to spread the Gospel of JESUS CHRIST all over <br />
the world and in to all peoples that have and have not heard the message. We endeavour to make disciples of Christ and win as many souls <br />
to LORD GOD almighty.
<?php echo $healing; ?> <br />
<?php echo $spiritual; ?><br />
</div>
</div>
</body>
</html>
对于CSS
and for css
<pre lang="css">@charset "utf-8";
#wrapper {
margin: 18px;
height: 650px;
width: 900px;
border: 1px solid #FFF;
}
#contactwrapper {
margin: 18px;
height:650px;
width:900px;
border: 1px solid #FFF;
}
#branding {
padding: 10px;
height: 130px;
}
#contactnav {
padding: 5px;
float:left;
height:650px;
width:140px;
}
#siteNav {
padding: 5px;
float: left;
height: 465px;
width: 140px;
}
#mainContent {
padding: 33px;
float: left;
height: 409px;
width: 684px;
}
#contactdisplay {
padding:33px;
float: left;
height:650px;
width:600px;
}
#footer {
font-size: 9px;
line-height: 25px;
background-color: #000;
text-align: center;
clear: both;
}
#eventsWrapper {
margin: 18px;
height: 650px;
width: 900px;
border: 1px solid #FFF;
float:left;
}
#eventsNav {
padding:5px;
height:650px;
width:240px;
float:left;
}
#eventsContent {
padding:33px;
float:left;
height:650px;
width:960px;
border:1px solid #FFF;
}
推荐答案
_GET [''Healing''])) {
_GET[''Healing''])) {
修复=
_GET [''../forms/missions.php''];
_GET[''../forms/missions.php''];
这篇关于在两列页面中使用div标签(如iframe)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文