Jump to content
  • 0

Не растягивается картинка в IE.


PREDATORik
 Share

Question

Здравствуйте! В шапке сайта есть картинка которая имеет заданную высоту. Во всех браузерах работает, а в этом ср*ном IE нет(. Как выйти с положения?

Вот код:

div#cat-nav {

background-attachment: scroll;

background-clip: border-box;

background-color: transparent;

background-image: url("../images/nav.png"); - сама картинка.

background-origin: padding-box;

background-position: center bottom;

background-repeat: no-repeat;

background-size: cover;

border-top-left-radius: 10px;

border-top-right-radius: 10px;

clear: both;

float: left;

height: 130px;- высота картинки.

margin: -5px 0 0;

width: 960px;- ширина картинки.

}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

нашел одну интересную штуку:

в исходном коде:

<!--[if lt IE 8]>

<link rel="stylesheet" type="text/css" media="screen" href="http://сайт/ie.css" />

<![endif]-->

в http://сайт/ie.css:

/* clear the floats for all our IE friends*/

.clear, form#commentform { zoom: 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