如何在所有屏幕分辨率中拟合内容

发布于 2025-02-08 05:58:13 字数 477 浏览 0 评论 0原文

我是CSS的新手 目前,我正在工作电影预订应用程序。 在这里,我想适合屏幕尺寸内的座椅容量,但它超越了屏幕。我想将所有座椅(行和柱)放在屏幕的侧面。 在此处输入图像描述

这是我尝试增加宽度的方式

,但不是 在这里不工作

.booking-row {
    max-width: 100%;
    overflow-x: auto;
}

,您可以找到示例代码 https://jsfiddle.net/8qya5ef3/1/1/

任何人都可以帮我吗

i'm new to css,
currently i'm working movie booking app.
here i want to fit the seat capacity inside of screen size but its going beyond the screen. i want to keep all the seats (rows and column) in side of the screen.
enter image description here

this is how its showing

i tried to increase the width but it isn't not working

.booking-row {
    max-width: 100%;
    overflow-x: auto;
}

here you can find the sample code https://jsfiddle.net/8qya5ef3/1/

can anyone help me in this

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

掩耳倾听 2025-02-15 05:58:13
.booking-row {
  background: url('https://i.sstatic.net/rVSVL.png') no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.booking-row {
  background: url('https://i.sstatic.net/rVSVL.png') no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文