Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CSS自定义字体可以在iPad的横向模式下使用,但不能在纵向模式下使用_Css_Ipad - Fatal编程技术网

CSS自定义字体可以在iPad的横向模式下使用,但不能在纵向模式下使用

CSS自定义字体可以在iPad的横向模式下使用,但不能在纵向模式下使用,css,ipad,Css,Ipad,我正在尝试为我的iPad站点使用自定义字体,它在横向模式下效果很好,但在纵向模式下效果不佳 我的HTML结构 body #wrapper blahblah 景观风格-作品 @media only screen and (orientation:landscape){ @font-face { font-family: custom_helvetica; src: url('../includes/helvetican.ttf'); }

我正在尝试为我的iPad站点使用自定义字体,它在横向模式下效果很好,但在纵向模式下效果不佳

我的HTML结构

body
  #wrapper
    blahblah
景观风格-作品

@media only screen and (orientation:landscape){
    @font-face {
        font-family: custom_helvetica;
        src: url('../includes/helvetican.ttf');
    }

    #wrapper {
       width:/*768px;*/1024px;
       font-family: custom_helvetica;
       margin:auto;
    }
肖像CSS-不显示表单

@media only screen and (orientation:portrait){
    @font-face {
        font-family: custom_helvetica;
        src: url('../includes/helvetican.ttf');
    }

    #wrappper {
        width:768px;
        font-family: helvetica;
        margin:auto;
    }

选择器正确吗


包装*p*per maybe?您的字体系列仍然是
定制的_helvetica
,但在
包装中使用的是
helvetica
编辑:当然可以看看吉普斯通的答案