Jump to content

riki

User
  • Posts

    52
  • Joined

  • Last visited

Posts posted by riki

  1. Shift-Web вопрос же в рамках этой темы....

    Раньше углы в IE округлялись (конечно тем способом -->> border-radius.htc), но после перемещения в другой каталог все сайта - упорно IE углы не округляет

  2. Сервер должен отдавать правильный заголовок. Подключайте через php:

    behavior: url('/misc/PIE.php');

    <?php
    /*
    This file is a wrapper, for use in PHP environments, which serves PIE.htc using the
    correct content-type, so that IE will recognize it as a behavior. Simply specify the
    behavior property to fetch this .php file instead of the .htc directly:

    .myElement {
    [ ...css3 properties... ]
    behavior: url(PIE.php);
    }

    This is only necessary when the web server is not configured to serve .htc files with
    the text/x-component content-type, and cannot easily be configured to do so (as is the
    case with some shared hosting providers).
    */

    header( 'Content-type: text/x-component' );
    include( 'PIE.htc' );
    ?>

    Есть баг с некоторыми элементами, если они становятся невидимыми, то укажите для них postion: relative;

    Так дело в пхп или неверный путь в урле?

  3. riki,

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

    Если Вы имели ввиду полный путь - то пробовал результат такой же

    Страничка эта index.php ???

    Не ясно то, что если файл style.сss и border-radius.htc лежат в одной директории

    такое подключение не работает

    behavior: url(border-radius.htc)

  4. В файле style.css eсть код для округления углов в IE

    .ieroundbox{
    ...
    behavior: url(border-radius.htc); /* подключаем наш htc скрипт который и будет округлять углы в ie*/
    }

    Но IE его не видит.

    Сам файл border-radius.htc лежит в одной папке с style.css.

    Пробал задавать разные url

    ../border-radius.htc

    ./border-radius.htc

    и полный путь, но все равно IE, что то не нравиться.

    В IE углы не округляются

    P.S Cам файл style.css по отношению к главному файлу index.php находиться в sk/css/style.css и здесь же border-radius.htc

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