@font-face declarations don't work in Android 4.3 Internet browser?

后端 未结 6 2097
傲寒
傲寒 2020-12-13 10:54

My Samsung Galaxy S3 phone recently upgraded from Android 4.1.3 to Android 4.3. Now several websites I designed which I tested in the Android internet browser are not displ

6条回答
  •  感情败类
    2020-12-13 11:26

    You could also maybe use Beacouron's solution of the media query targeting mobile, but this may be difficult if you have various Android tablet resolutions to target to.

    Another idea maybe to use a media-query targetting webkit browsers like so:

    @media screen and (-webkit-min-device-pixel-ratio:0) {
        @font-face {
            font-family: 'open_sansbold';
            src: url('OpenSans-Bold-webfont.svg#open_sansbold') format('svg');
            font-weight: normal;
            font-style: normal;
        }
    }
    

提交回复
热议问题