В следующем коде первое и второе изображения с якорями имеют ссылки, а в этих изображениях текст подписи не скрывает (непрозрачность 0) при загрузке страницы в IE 6/IE7 или IE8 в режиме Comp. Все остальные изображения работают нормально, но мне нужно только ссылки в них.css непрозрачность не работает корректно в IE 6/IE7 или IE8 в режиме совместимости
Вот код в JSfiddle
FF работает отлично и IE8 в нормальном режиме, а также отлично
Я бы разместить весь код здесь, но его довольно долго, и у меня была проблема, делая это.
ДОБАВЛЕНО код расслоение плотной
$(window).load(function(){
//for each description div...
$('div.description').each(function(){
//...set the opacity to 0...
$(this).css('opacity', 0);
//..set width same as the image...
$(this).css('width', $(this).siblings('img').width());
//...get the parent (the wrapper) and set it's width same as the image width... '
$(this).parent().css('width', $(this).siblings('img').width());
//...set the display to block
$(this).css('display', 'inline-block');
});
$('div.wrapper').hover(function(){
//when mouse hover over the wrapper div
//get it's children elements with class descriptio
//and show it using fadeTo
//$(this).children('.description').show();
$(this).children('.description').stop().fadeTo(500, 0.7);
},function(){
//when mouse out of the wrapper div
//use fadeTo to hide the div
$(this).children('.description').stop().fadeTo(500, 0);
});
});
кажется, не нравится ...
$(this).css('opacity', 0);
Возможный дубликат http://stackoverflow.com/questions/3654842/greying-out-a-button-from-code-behind-does-not-work-in-ie/3654874#3654874 – RPM1984