Jump to content
  • 0

Съезжает макет


Мо ской котик
 Share

Question

Вобщем есть страница грубо говоря вот такого вида:

<!--1.html-->
<div class="1">
<div class="2">
</div>
</div>
<!--1.html-->
<!--2.html-->
<div class="3">
<div class="4">
<div class="5">
</div>
<div class="6">
</div>
<div class="7">
<!--2.html-->
<!--3.html-->
</div>
</div>
</div>
<!--3.html-->
<!--4.html-->
<div class="8">
<div class="9">
</div>
</div>
<!--4.html-->

Дальше сделал что бы сайт был динамическим вот так:

<?php	
define('THEME','MY');
include 'themes/'.THEME.'/1.html';
include 'themes/'.THEME.'/2.html';
$page = !empty($_GET['page'])?trim($_GET['page']):$page = "main";
if ($page) {
if ((!strpos($page,".")) and (!strpos($page,"/"))) {
$path = 'inc/'.$page.'/view.php';
if (file_exists($path)) {
include($path);
} else {
echo '<br /> <h1>Ошибка!</h1> <br /> <h1>Такой страницы не существует. </h1>';
}
} else {
echo '<br /> <h1>Ошибка!</h1> <br /> <h1>Доступ запрещен. </h1>';
}
}
include 'themes/'.THEME.'/3.html';
include 'themes/'.THEME.'/4.html';

?>

Получается 4 странички. Все сохранив в юникоде. Но при выводе информации <div class="4"> съезжает на одну строку вниз. Если файл 2.html сохранить в ANSI все нормально. Но тогда не читабелен русский текст.

Что делать?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy