在iOS / Safari中忽略了CSS font-family!important声明

时间:2016-01-29 15:15:57

标签: html ios css fonts safari

我正在研究这个site,我有这个CSS

public void startSocketListening(){
        byte[] receiveData = new byte[1024];
        DatagramPacket receivePacket;
        System.out.println("Waiting to receive...");
        while (true) {
            receivePacket = new DatagramPacket(receiveData, receiveData.length);
            try {
                DatagramSocket serverSocket = new DatagramSocket(8888);
                serverSocket.receive(receivePacket);
                //if i receive a packet and it doesn't already have a flow rule process it
                if ((receivePacket != null) && (newOFRuleAdded == false)){
                    this.rlocAddress = new String(receivePacket.getData());
                    System.out.println("RECEIVED: " + rlocAddress);
                    System.out.println("RLOC: " + rlocAddress);
                    //process the message
                    newOFRuleAdded = true;
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }

这是针对首页图片上的文字(请不要询问选择器 - 它是由插件生成的!)。我需要使用Helvetica Neue字体,我相信它在iOS中受支持(iosfonts.com)。它在桌面浏览器上看起来很好,但在iOS上(在Safari中)忽略了font-family,并呈现为扁平的无衬线字体。

我已尝试列出各种替代方案,但没有成功。我使用的是最新的iOS 9.2.1。

有谁能说我为什么遇到这个问题?以及如何使它应用正确的字体?我准备好粉碎东西......感谢您提出任何建议。

0 个答案:

没有答案
相关问题