html - 如何删除滚动并适合响应式屏幕?
问题描述
.iframe-container {
overflow: hidden;
padding-top: 56.25%; /* 16:9*/
position: relative;
}
.iframe-container iframe {
border: 0;
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
<div class="iframe-container">
<iframe width="560" height="315" src="https://ytj861vz7v7n6opm7n9xwq-on.drv.tw/HTML%20Coding/jotform.html" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" loading="lazy" allowfullscreen></iframe>
</div>
我也在 CSS 中试过这个:
溢出:隐藏;这不起作用
这也不是响应式的有没有一种方法可以删除滚动条,同时仍然可以滚动整个页面?
请只使用 CSS 或 HTML。
解决方案
推荐阅读
- python - 功能不实时显示密码
- flutter - 行太大,无法放入 CursorWindow requiredPos=0, totalRows=1;
- sql - 查询返回“介于”范围之外的行?
- azure - Microsoft Graph Toolkit 没有与某些 Azure AD 用户匹配的结果
- r - 返回具有非零小数位的条目数
- android-emulator - Android Studio 4.1.2 - 模拟器自动崩溃
- c# - EF 和 IHostedService 的多个实例
- r - 如何使用 if else 在 r 中获得三个结果
- locust - 如何为蝗虫中的用户共享所有请求的cookie?
- python - 在 Pandas Dataframe 中为文本字符串中的 1 个单词和相应的值着色