Russian TYPO3 community Форум больше не используется. Присоединяйтесь к каналу #community-ru в Slack for TYPO3 community  

Вернуться   Russian TYPO3 community > Тематические форумы > TypoScript практикум

Ответ
 
Опции темы Опции просмотра
Старый 27.08.2008, 13:29   #1
DiSyA
Новенький
 
Регистрация: 11.08.2008
Сообщений: 11
По умолчанию

Цитата:
Сообщение от -=UncleByte=- Посмотреть сообщение
Заблуждение в использовании фреймов в 21-м веке.
Попробуйте сделать нормальный шаблон.
Не совсем понимаю как сделать без фреймов прокрутку основной страницы, но так чтобы картинка вверху и меню оставались на месте ?
DiSyA вне форума   Ответить с цитированием
Старый 27.08.2008, 14:27   #2
Fearless Goblin
Senior Member
 
Аватар для Fearless Goblin
 
Регистрация: 18.07.2006
Сообщений: 108
Отправить сообщение для Fearless Goblin с помощью ICQ Отправить сообщение для Fearless Goblin с помощью Skype™
По умолчанию

Цитата:
Не совсем понимаю как сделать без фреймов прокрутку основной страницы, но так чтобы картинка вверху и меню оставались на месте ?
Используйте CSS. В частности свойство overflow со значением scroll или auto.
Fearless Goblin вне форума   Ответить с цитированием
Старый 27.08.2008, 15:03   #3
DiSyA
Новенький
 
Регистрация: 11.08.2008
Сообщений: 11
По умолчанию

Цитата:
Сообщение от Fearless Goblin Посмотреть сообщение
Используйте CSS. В частности свойство overflow со значением scroll или auto.
А можно примерчик если не сложно ?
DiSyA вне форума   Ответить с цитированием
Старый 27.08.2008, 15:32   #4
Fearless Goblin
Senior Member
 
Аватар для Fearless Goblin
 
Регистрация: 18.07.2006
Сообщений: 108
Отправить сообщение для Fearless Goblin с помощью ICQ Отправить сообщение для Fearless Goblin с помощью Skype™
По умолчанию

Код HTML:
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>overflow</title>
<style type="text/css">
.header {
  height: 20px;
  background-color: red;
}

.body {
 overflow: auto;
 height: 400px;
}

.footer {
  height: 20px;
  background-color: green;
}
</style>
</head>
<body> 
<div class="header">Something in the header</div>
<div class="body">
<h2>Definition</h2>

<p>The overflow property sets what happens if the content of an element overflow its area.&nbsp;</p>

<p><b>Inherited:</b>   No</p>

<hr />

<h2><b>JavaScript Syntax</b></h2>
<p>CSS properties can also be dynamically changed with a JavaScript.</p>

<p><b>Scripting Syntax:</b>  <i>object</i>.style.overflow=&quot;hidden&quot;</p>
<hr />

<h2>Example</h2>

<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
  <tr>
    <td valign="top">
      <p>p&nbsp;<br />
      {<br />
      overflow: scroll<br />
      }</p>
    </td>
  </tr>
</table>
<h2>Possible Values</h2>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
  <tr>
    <th align="left" valign="top">Value</th>
    <th align="left" valign="top">Description</th>
  </tr>
  <tr>
    <td valign="top">visible</td>
    <td valign="top">Default. The content is not clipped. It renders outside the element</td>
  </tr>
  <tr>
    <td valign="top">hidden</td>
    <td valign="top">The content is clipped, but the browser does not display a
      scroll-bar to see the rest of the content&nbsp;</td>
  </tr>
  <tr>
    <td valign="top">scroll</td>
    <td valign="top">The content is clipped, but the browser displays a
      scroll-bar to see the rest of the content</td>
  </tr>
  <tr>
    <td valign="top">auto</td>
    <td valign="top">If the content is clipped, the browser should display a
      scroll-bar to see the rest of the content</td>
  </tr>
</table>
<br />
</div> 
<div class="footer">Something in the footer</div>
</body>
</html>
Пример очень простой, но идея, думаю, понятна

Добавлено: кстати, на форуме тоже используется это же свойство. Например, в этом моём посте выложено большое количество кода, которое отображается в обычном div-е с тем же overflow.
Fearless Goblin вне форума   Ответить с цитированием
Старый 27.08.2008, 16:02   #5
DiSyA
Новенький
 
Регистрация: 11.08.2008
Сообщений: 11
По умолчанию

Цитата:
Сообщение от Fearless Goblin Посмотреть сообщение
Код HTML:
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>overflow</title>
<style type="text/css">
.header {
  height: 20px;
  background-color: red;
}

.body {
 overflow: auto;
 height: 400px;
}

.footer {
  height: 20px;
  background-color: green;
}
</style>
</head>
<body> 
<div class="header">Something in the header</div>
<div class="body">
<h2>Definition</h2>

<p>The overflow property sets what happens if the content of an element overflow its area.&nbsp;</p>

<p><b>Inherited:</b>   No</p>

<hr />

<h2><b>JavaScript Syntax</b></h2>
<p>CSS properties can also be dynamically changed with a JavaScript.</p>

<p><b>Scripting Syntax:</b>  <i>object</i>.style.overflow=&quot;hidden&quot;</p>
<hr />

<h2>Example</h2>

<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
  <tr>
    <td valign="top">
      <p>p&nbsp;<br />
      {<br />
      overflow: scroll<br />
      }</p>
    </td>
  </tr>
</table>
<h2>Possible Values</h2>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
  <tr>
    <th align="left" valign="top">Value</th>
    <th align="left" valign="top">Description</th>
  </tr>
  <tr>
    <td valign="top">visible</td>
    <td valign="top">Default. The content is not clipped. It renders outside the element</td>
  </tr>
  <tr>
    <td valign="top">hidden</td>
    <td valign="top">The content is clipped, but the browser does not display a
      scroll-bar to see the rest of the content&nbsp;</td>
  </tr>
  <tr>
    <td valign="top">scroll</td>
    <td valign="top">The content is clipped, but the browser displays a
      scroll-bar to see the rest of the content</td>
  </tr>
  <tr>
    <td valign="top">auto</td>
    <td valign="top">If the content is clipped, the browser should display a
      scroll-bar to see the rest of the content</td>
  </tr>
</table>
<br />
</div> 
<div class="footer">Something in the footer</div>
</body>
</html>
Пример очень простой, но идея, думаю, понятна

Добавлено: кстати, на форуме тоже используется это же свойство. Например, в этом моём посте выложено большое количество кода, которое отображается в обычном div-е с тем же overflow.
Огромное спасибо !!! Бум творить
DiSyA вне форума   Ответить с цитированием
Старый 27.08.2008, 16:27   #6
Fearless Goblin
Senior Member
 
Аватар для Fearless Goblin
 
Регистрация: 18.07.2006
Сообщений: 108
Отправить сообщение для Fearless Goblin с помощью ICQ Отправить сообщение для Fearless Goblin с помощью Skype™
По умолчанию

Пожалуйста
Удачи в разработках!
Fearless Goblin вне форума   Ответить с цитированием
Ответ


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB code is Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход

Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Разметка каскадного вложенного меню в TemplaVoila maaboo Общие вопросы 7 27.07.2008 17:11
Сложное меню Tod TypoScript практикум 7 26.02.2008 18:29
Как организовать меню 2-го и более уровня отдельно от первого? Mike10581 TypoScript практикум 4 11.12.2007 18:46
Не получается отобразить меню второго уровня... Vit Brevis Общие вопросы 5 22.11.2006 17:52
Меню из подстраниц Grank Общие вопросы 6 31.01.2005 18:46


Часовой пояс GMT +4, время: 17:22.


Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot

Хостинг и техническая поддержка: TYPO3 Лаборатория