Jump to content

Scrum

Expert
  • Posts

    553
  • Joined

  • Last visited

Posts posted by Scrum

  1. Закрывающий тег Не требуется.

    конструкция

    ...

    ...

    Документ может содержать любое количество форм, но одновременно на сервер может быть отправлена только одна форма. По этой причине данные форм должны быть независимы друг от друга.

    Проблема в том, что вложенные формы не допустимы.

    - ???

  2. Читать побольше.

    <table border="1" cellpadding="0"  cellspacing="0">
    <tr>
    <td>Первый</td>
    <td>
    <form action="script.php" method="get">
    <input type="radio" name="browser" value="nn" />Netscape
    <input type="radio" name="browser" value="ie" />Internet Explorer
    <input type="submit" name="submitbutton" value="Submit" />
    </form>
    </td>
    <td>
    <input type="checkbox" name="add" value="first" />
    </td>
    </tr>
    <tr>
    <td>Второй</td>
    <td>
    <form action="script.php" method="get">
    <input type="radio" name="browser" value="nn" />Netscape
    <input type="radio" name="browser" value="ie" />Internet Explorer
    <input type="submit" name="submitbutton" value="Submit" />
    </form>
    </td>
    <td>
    <input type="checkbox" name="add" value="second" />
    </td>
    </tr>
    </table>

  3. моно еще вот так это для EI, для оперы и мазилы все намного проще

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="ru" xml:lang="ru">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
    <style type="text/css">
    /*<![CDATA[*/
    table { BORDER-COLLAPSE: collapse; MARGIN: -1px; position: absolute; top: 100px; left: 200px;}
    a:hover img {DISPLAY: BLOCK;}
    img {DISPLAY: none;}
    a:hover {BACKGROUND: #e6eaff;}
    /*]]>*/
    </style>
    </head>
    <body>
    <a href="#">Link<!--[if IE 7]><!--></a><!--<![endif]-->
    <!-- первое вложение -->
    <table>
    <tr>
    <td>
    <img src="#" alt="" />
    </td>
    </tr>
    </table>
    <!-- End первого вложения -->
    <!--[if lte IE 6]></a><![endif]-->
    </body>
    </html>

  4. а у меня все переноситься

    <!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>
    <title></title>
    <style type="text/css">
    /*<![CDATA[*/
    textarea {
    width:83px;
    overflow:scroll;
    height:400px;
    margin-left:5px;
    margin-top:5px;
    background-color:#FFEC8D;
    border: 2px solid yellow;
    filter:progid:DXImageTransform.Microsoft.BasicImage(opacity=0.750);
    text-align:justify;
    }
    /*]]>*/
    </style>
    </head>

    <body>
    <textarea cols="30" rows="40" ></textarea>
    </body>

    </html>

  5. body {

    /* Scrollbar styles are supported by Internet Explorer only */

    scrollbar-arrow-color: #333399;

    scrollbar-face-color: #FFCC00;

    scrollbar-highlight-color: #FFFF99;

    scrollbar-3dlight-color: #333399;

    scrollbar-shadow-color: #333399;

    scrollbar-darkshadow-color: black;

    scrollbar-track-color: #333399;

    }

  6. В дополнение бреда но уже более осмысленно и валидно

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

    <html>

    <head>
    <title></title>
    <style type="text/css">
    <!--
    html {
    padding: 0;
    margin: 0;
    background: #404040 url(grey058.jpg);
    }
    body {
    background: #666;
    margin: 100px auto;
    padding: 50px;
    width: 760px;
    text-align: center;
    font: bold 12px Verdana, Arial, Helvetica, sans-serif;
    color: #fff;
    filter: alpha (opacity=70);
    opacity: 0.7;
    }
    h1 {
    letter-spacing: 5px;
    font-size: 20pt;
    font-weight: normal;
    }


    -->
    </style>
    </head>
    <body>
    <h1>[ Мега супер приход ]</h1>
    </body>
    </html>

  7. "font-size: 0" - лучше заменить на "line-height: 0", поскольку в IE шрифт все равно меньше 2px не сделается (хотя для данного случая сгодится, но все равно лучше делать правильно). А еще проблема в том, что после картинки не должно быть никаких символов (в т.ч. переноса) вплоть до закрытия ячейки.

    в данном случае это и требовалось height="2"

    "line-height: 0" - предлагаю попробовать и посмотреть результат

  8. Жестко меня приходнуло ))

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

    <html>

    <head>
    <title></title>
    <style type="text/css">
    /*<![CDATA[*/
    html {
    background-color: #fff;
    margin-left: 10px;
    padding-left: 10px;
    overflow: scroll;
    background-color: #404040;
    float: left;
    }
    div {
    background-color: silver;
    height: 100px;
    position: absolute;
    width: 100%;
    top: 10px;
    left: 0;
    }
    body {
    background-color: red;
    margin: 0 auto;
    padding: 0;
    width: 760px;
    height: 20px;
    }
    /*]]>*/
    </style>
    </head>
    <div>
    <body>

    </body>
    <body style="margin-top: 200px;">
    привет
    </body>
    </div>

    </html>

    ниче не понимаю че твориться )) .

  9. 2 Scrum

    Спасибо... я не проверял то, что писал, т.к. смысл был - показать принцип.

    Да я собственно только принципом и интересовался, про ошибки, что бы остальные не запутались.

  10. Смысл понятен, сенкс, но есть несколько ошибок

    "

    <?
    $id = $_GET["id];
    ?>

    break;

    <?php
    switch($id){
    case 1: include_once('имя файла');
    default: include_once('main.php');
    }
    ?>

    ""

    <?php
    require_once(switch.php);
    ?>

  11. Лучше отдельно, а потом подключать файл co switch (require()).

    Так если вдруг switch придется изменять, не нужно будет редактировать все страницы.

    А в кратце примерчик могете ?

×
×
  • 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