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');
    }

    #wrapper {
       width:/*768px;*/1024px;
       font-family: custom_helvetica;
       margin:auto;
    }

Portrait 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;
    }

最佳答案

选择器是否正确?

wrap*p*per maybe?

关于CSS 自定义字体适用于横向模式但不适用于 iPad 的纵向模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8048645/

相关文章:

css - 向现有菜单添加箭头

javascript - 如何阻止一个 div 移动另一个但仍保持它们垂直对齐?

iphone - 核心数据,一对多关系

iphone - 从 iPhone 中的“我的应用程序”打开 Native Map 应用程序

ios - 更新堆栈 View 约束导致崩溃 : "The view hierarchy is not prepared for the constraint"

objective-c - 独特的字母数字 key 生成器

html - Bootstrap 轮播背景图片不显示

html - 为什么行高会增加额外的高度?

html - 如何将页脚 div 放在内容下方?

ios - 无法在 iOS 沙箱中的文档文件夹中创建文件或目录