gpt4 book ai didi

css - 即使没有应用 CSS,Ipad 也会在横向模式下截断文本

转载 作者:行者123 更新时间:2023-11-28 08:48:43 25 4
gpt4 key购买 nike

我目前正在尝试弄清楚为什么在 iPad(XCode 模拟器)上横向查看我的布局时,它会在右侧被截断。更奇怪的是:即使我从布局中删除了 所有 css,我仍然遇到同样的问题。我的猜测是它与我的视口(viewport)设置或我的主布局文件中的其他内容有关:

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no,maximum-scale=1.0">
<title>MyCV - Levi Hackwith</title>
<link rel = "stylesheet" href = "/public/assets/css/app.css" />
<link rel = "stylesheet" href = "//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" />
</head>
<body>
<div id = "app">
{{{body}}}
</div>
</body>
</html>

这是主要内容的标记:

<section id = "sidebar">
<section class = "contact-info">
<div class = "avatar">
<img src = "https://www.gravatar.com/avatar/{{item.gravatar}}
?s=400">
</div>
<hr />
<ul>
<li>
<span class = "label">Name</span>
<span>
{{item.firstName}} {{item.lastName}}
</span>
</li>
<li>
<span class = "label">Email</span>
<span>
{{item.email}}
</span>
</li>
<li>
<span class = "label">Location</span>
<span>
{{item.addresses.home.city}},
{{item.addresses.home.state}}
</span>
</li>
{{#if item.sites.length}}
<li>
{{#each item.sites}}
<a href = "{{this.url}}" target = "_blank">
<i class ="fa-icon {{this.icon}} fa">&nbsp;</i>
</a>
{{/each}}
</li>
{{/if}}
</ul>
</section>
</section>
<section id = "main-content">
{{#each item.workHistory}}
<div class = "work-history-item">
<div class = "company-info">
<span class = "company-name">{{name}}</span>
<time datetime= "{{startDate}}">
{{#formatDate startDate 'MMMM YYYY'}}{{/formatDate}} -
{{#if endDate}}
{{#formatDate endDate 'MMMM YYYY'}}{{/formatDate}}
{{else}}
Present
{{/if}}
</time>
</div>
<div>
<div>
<p class = "work-description">
{{description}}
</p>
</div>
</div>
<div class = "skill-list">
{{#each skills}}
<span class = "label">{{this.name}}</span>
{{/each}}
</div>
</div>
{{/each}}
</section>

可在此处找到该应用程序的现场演示:http://digitalresume.herokuapp.com/users/54530e03c575dc86d61d22f8

为了查看问题,您需要使用开发工具去除 css。

最佳答案

这个问题的答案非常简单:iPad 模拟器和 Chrome 设备模拟器都坏了,在横向模式下给你一个错误的布局。抱歉浪费了大家的时间。

关于css - 即使没有应用 CSS,Ipad 也会在横向模式下截断文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27465576/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com