milad7091
21-04-2013, 10:12
چرا این کد ها اینجور میشن؟
وقتی که معمولی طراحی می کنم درست کار میکنه. اینجوری میشه:
[ برای مشاهده لینک ، لطفا با نام کاربری خود وارد شوید یا ثبت نام کنید ]
اما وقتی از دستورinclude right.php استفاده می کنم تصویرم اینجوری میشه:
[ برای مشاهده لینک ، لطفا با نام کاربری خود وارد شوید یا ثبت نام کنید ]
اینم کد ایندکسم:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[ برای مشاهده لینک ، لطفا با نام کاربری خود وارد شوید یا ثبت نام کنید ]">
<html xmlns="[ برای مشاهده لینک ، لطفا با نام کاربری خود وارد شوید یا ثبت نام کنید ]" >
<head id="Head1" runat="server">
<title>سایت - خودم</title>
<link rel="Shortcut Icon" href="./image/icon.png" />
<style type="text/css">
.style1
{
width: 1020px;
}
.style3
{
font-size: small;
background-repeat: no-repeat;
}
.style4
{
background-color: #800000;
width: 300px;
}
</style>
</head>
<body style="background-color: #dfe8f4;">
<br>
<br>
<br>
<br>
<table align="center" cellpadding="0" cellspacing="0" class="style1">
<tr>
<td class="style4">
</td>
<td width="10">
</td>
<td class="style3" width="550"
style="vertical-align: top; background-color: #FFFFFF;">
<img alt="" src="Image/backcenter.png" style="width: 500px; height: 16px" /><br />
<br />
</td>
<td width="10">
</td>
<td width="200" style="vertical-align: top">
<?php include "right.php"; ?>
</td>
</tr>
</table>
</body>
</html>
و اینم کد right
<div style="background-image: url('Image/backright.png'); background-repeat: no-repeat; height: 30px; width: 200px; direction: rtl; text-align: center; font-size: 2pt;">
<span style="vertical-align: baseline;font-size: 10pt;font-family: Tahoma;">
<br style="font-size: 2pt" />
تست برای تست</span></div>
<div style="width: 200px; background-color: #FFFFFF;">
sdmn sdf
<br>
sdmn sdjn sdf
sdj fsjdfsdf
</div>
<div style="width: 200px; height: 20px;">
</div>
<div style="background-image: url('Image/backright.png'); background-repeat: no-repeat; height: 30px; width: 200px; direction: rtl; text-align: center; font-size: 2pt;">
<span style="vertical-align: baseline;font-size: 10pt;font-family: Tahoma;">
<br style="font-size: 2pt" />
تست برای تست</span></div>
<div style="width: 200px; background-color: #FFFFFF;">
</div>
<div style="width: 200px; height: 20px;">
</div>
<div style="background-image: url('Image/backright.png'); background-repeat: no-repeat; height: 30px; width: 200px; direction: rtl; text-align: center; font-size: 2pt;">
<span style="vertical-align: baseline;font-size: 10pt;font-family: Tahoma;">
<br style="font-size: 2pt" />
تست برای تست</span></div>
<div style="width: 200px; background-color: #FFFFFF;">
</div>
<div style="width: 200px; height: 20px;">
</div>
پدرم دراومد واسه این کد الان یک هفته. خودمو کشتم که درست نشد. خدایی اگه ویندوز بود تا الان 10 بار کلشو نوشه بودم
وقتی که معمولی طراحی می کنم درست کار میکنه. اینجوری میشه:
[ برای مشاهده لینک ، لطفا با نام کاربری خود وارد شوید یا ثبت نام کنید ]
اما وقتی از دستورinclude right.php استفاده می کنم تصویرم اینجوری میشه:
[ برای مشاهده لینک ، لطفا با نام کاربری خود وارد شوید یا ثبت نام کنید ]
اینم کد ایندکسم:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[ برای مشاهده لینک ، لطفا با نام کاربری خود وارد شوید یا ثبت نام کنید ]">
<html xmlns="[ برای مشاهده لینک ، لطفا با نام کاربری خود وارد شوید یا ثبت نام کنید ]" >
<head id="Head1" runat="server">
<title>سایت - خودم</title>
<link rel="Shortcut Icon" href="./image/icon.png" />
<style type="text/css">
.style1
{
width: 1020px;
}
.style3
{
font-size: small;
background-repeat: no-repeat;
}
.style4
{
background-color: #800000;
width: 300px;
}
</style>
</head>
<body style="background-color: #dfe8f4;">
<br>
<br>
<br>
<br>
<table align="center" cellpadding="0" cellspacing="0" class="style1">
<tr>
<td class="style4">
</td>
<td width="10">
</td>
<td class="style3" width="550"
style="vertical-align: top; background-color: #FFFFFF;">
<img alt="" src="Image/backcenter.png" style="width: 500px; height: 16px" /><br />
<br />
</td>
<td width="10">
</td>
<td width="200" style="vertical-align: top">
<?php include "right.php"; ?>
</td>
</tr>
</table>
</body>
</html>
و اینم کد right
<div style="background-image: url('Image/backright.png'); background-repeat: no-repeat; height: 30px; width: 200px; direction: rtl; text-align: center; font-size: 2pt;">
<span style="vertical-align: baseline;font-size: 10pt;font-family: Tahoma;">
<br style="font-size: 2pt" />
تست برای تست</span></div>
<div style="width: 200px; background-color: #FFFFFF;">
sdmn sdf
<br>
sdmn sdjn sdf
sdj fsjdfsdf
</div>
<div style="width: 200px; height: 20px;">
</div>
<div style="background-image: url('Image/backright.png'); background-repeat: no-repeat; height: 30px; width: 200px; direction: rtl; text-align: center; font-size: 2pt;">
<span style="vertical-align: baseline;font-size: 10pt;font-family: Tahoma;">
<br style="font-size: 2pt" />
تست برای تست</span></div>
<div style="width: 200px; background-color: #FFFFFF;">
</div>
<div style="width: 200px; height: 20px;">
</div>
<div style="background-image: url('Image/backright.png'); background-repeat: no-repeat; height: 30px; width: 200px; direction: rtl; text-align: center; font-size: 2pt;">
<span style="vertical-align: baseline;font-size: 10pt;font-family: Tahoma;">
<br style="font-size: 2pt" />
تست برای تست</span></div>
<div style="width: 200px; background-color: #FFFFFF;">
</div>
<div style="width: 200px; height: 20px;">
</div>
پدرم دراومد واسه این کد الان یک هفته. خودمو کشتم که درست نشد. خدایی اگه ویندوز بود تا الان 10 بار کلشو نوشه بودم