-1

这是我现在正在做的登陆页面http://prototype.uedpro.ru 它是西里尔文,不用担心。

在画廊中,有照片名称的标签height: 0和对角线边框现在出现在所有其他浏览器中,但在 FF 中没有。我几乎尝试了所有方法,但我仍然无法弄清楚出了什么问题。有小费吗?

整个画廊的CSS:

.thumbwrap {
  width: 472px;
  height: 314px;
  margin: 6.5px auto; }

.thumbwrap img {
 width: 100%; }

.trap {
    -moz-box-sizing: border-box;
   height: 0;
   width: 485px;
   border-top: 32px solid #3d4344;
   -moz-border-top: 32px solid #3d4344;
   -o-border-top: 32px solid #3d4344;
  border-left: 32px solid rgba(0,0,0,0);
   -moz-border-left: 32px solid rgba(0,0,0,0);
   -o-border-left: 32px solid rgba(0,0,0,0);
   border-right: 32px solid rgba(0,0,0,0);
    -moz-border-left: 32px solid rgba(0,0,0,0);
    -o-border-left: 32px solid rgba(0,0,0,0);
    position: relative;
    -moz-transform: scale(.9999);
    -webkit-filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.42));
   filter: url(#drop-shadow);
    -ms-filter: "progid:DXImageTransform.Microsoft.Dropshadow(OffX=0,     OffY=1,Color='#000')";
    filter: "progid:DXImageTransform.Microsoft.Dropshadow(OffX=0, OffY=1,Color='#000')";
     behavior: url('../stylesheets/PIE.htc');}

#trap1 {
  height: 0;
  width: 245px;
    border-top: 32px solid #3d4344;
    -moz-border-top: 32px solid #3d4344;
    -o-border-top: 32px solid #3d4344;
    border-left: 32px solid rgba(0,0,0,0);
   -moz-border-left: 32px solid rgba(0,0,0,0);
   -o-border-left: 32px solid rgba(0,0,0,0);
   border-right: 32px solid rgba(0,0,0,0);
   -moz-border-left: 32px solid rgba(0,0,0,0);
   -o-border-left: 32px solid rgba(0,0,0,0);
    position: relative;
   -moz-transform: scale(.9999);
  behavior: url('../stylesheets/PIE.htc');
   -moz-box-sizing: border-box;
 }

#trap1 span {
 left: 50px;
 top: -25px;
 font-size: 15px; }

#trap2 span {
 top: -26px;
 right: 0;
 font-size: 12px; }

.thumbpad span {
 position: absolute;
 top: -29px;
 right: -5px;
 color: #b4dbe1;
 font-size: 10px; }

.activepad {
  background-color: #FFFFFF !important;
  z-index: 9999 !important; }

.activetrap {
    width: 245px !important;
    border-top: 32px solid #FFFFFF !important;
    -moz-border-top: 32px solid #FFFFFF !important;
    -o-border-top: 32px solid #FFFFFF !important;
   -moz-box-sizing: border-box;
  /* behavior: url('../stylesheets/PIE.htc'); */}

  .activespan {
   color: #000000 !important;
    left: 55px;
}  

JS:

var zindex = 7;
var thumbs = $('.thumbpad');
var i = 8;
var margin = 1;
$('.thumbpad').each(function(){
    $(this).css('z-index',i);
    i-=1;
       });

for (i = 5; i < thumbs.length; i++) {
     $(thumbs[i]).css('width',$(thumbs[i]).width() + 2).css('top',-margin);
}


$('.thumbpad').hover(function(){
   if (!$(this).hasClass('activepad')) {
       var prev = $(this).prevAll();
       var next = $(this).nextAll();
       var index = $(this).index()+1;
       var i =index;
       var j = index;
       $(prev).each(function(){
        $(this).css('z-index',i-1);
         $(this).find('.trap').css('width','245px');
         $(this).find('span').css('left','0');
       });
   _.each($(prev).toArray().reverse(),function(){
           $(this).css('z-index',i-1);

       });
       removeWhite($('#first_thumb'));
       addWhite($(this));
   }
},function(){
    if ($(this).hasClass('activepad')) {
        var prev = $(this).prevAll();
        var i = 8;
        $('.thumbpad').each(function(){
            $(this).find('.trap').removeAttr('style');
            $(this).find('span').removeAttr('style').css('right','-5px');
            $(this).css('z-index',i);

            i-=1;
        });
       removeWhite($(this));
        addWhite($('#first_thumb'));

    }
});

function addWhite (pad) {
    $(pad).addClass('activepad');
    $(pad).find('.trap').addClass('activetrap');
    $(pad).find('span').addClass('activespan');
}

function removeWhite (pad) {
    $(pad).removeClass('activepad');
    $(pad).find('.trap').removeClass('activetrap');
    $(pad).find('span').removeClass('activespan');
}
4

1 回答 1

0

.trapCSS 规则中,这打破了 Firefox

filter: url(#drop-shadow);

删除它或将其注释掉,它们就会出现。

此外,我认为您不能将基于 ID 的选择器传递给 CSS 中的 url(),尽管我可能是错的。

于 2013-07-29T08:07:21.080 回答