Jump to content
  • 0

padding для IE


RK3DNP
 Share

Question

Добрый день, имеется код:

 <div>

   <ul>

       <li>текст</li>

   </ul>

</div>

 

Во всех браузерах для li назначено padding 5px, а для всех ie 10px.

Создал отдельный фаил ie.css, прописал там стиль, в шаблоне между head прописал:

<!--[if IE]>
 <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/syte/css/ie.css" type="text/css" />
<![endif]-->
но стиль не применяется. Тестирую в 11 версии ИЕ. 
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Начиная с 10-й версии IE не поддерживает условные комментарии, используйте хаки:

http://ru.stackoverflow.com/questions/326952/ie-10-11-%D0%BD%D0%B5-%D0%B2%D0%B8%D0%B4%D0%B8%D1%82-%D1%83%D1%81%D0%BB%D0%BE%D0%B2%D0%BD%D1%8B%D0%B5-%D0%BA%D0%BE%D0%BC%D0%BC%D0%B5%D0%BD%D1%82%D0%B0%D1%80%D0%B8%D0%B8

  • Like 1
Link to comment
Share on other sites

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