is there a css hack for safari only NOT chrome?

后端 未结 18 1567
旧时难觅i
旧时难觅i 2020-11-22 06:50

im trying to find a css hack for just safari NOT chrome, i know these are both webkit browsers but im having problems with div alignments in chrome and safari, each displays

18条回答
  •  失恋的感觉
    2020-11-22 07:15

    hi i ve made this and it worked for me

    @media(max-width: 1920px){
        @media not all and (min-resolution:.001dpcm) {
    
            .photo_row2 {
                margin-left: 5.5% !important;
            }
        }
    }
    
    @media(max-width: 1680px){
        @media not all and (min-resolution:.001dpcm) {
    
            .photo_row2 {
                margin-left: 15% !important;
            }
    
        }
    }
    
    @media(max-width: 1600px){
        @media not all and (min-resolution:.001dpcm) {
    
            .photo_row2 {
                margin-left: 18% !important;
            }
    
        }
    }
    
    
    @media (max-width: 1440px) {
    @media not all and (min-resolution:.001dpcm) {
    
            .photo_row2 {
                margin-left: 24.5% !important;
            }
    
        }
    
    }
    
    
    @media (max-width: 1024px) {
    @media not all and (min-resolution:.001dpcm) {
        @media {
            .photo_row2 {
                margin-left: -11% !important;
            }
    
        }
    
    }
    

提交回复
热议问题