html - 智能手机分辨率响应

标签 html css

我有一个看起来像所附屏幕截图中的网站。我希望它始终看起来像这样,没有向下滚动。

问题是当我在 iphone4 上查看我的网站时,我必须向下滚动才能看到底部的圆圈图像。即使在低分辨率的智能手机中,我怎样才能让它看起来像屏幕截图 The Screenshot, from LG G6

最佳答案

使用 CSS 中的 @media only screenMore info here

长话短说,一旦尺寸达到一定大小,请切换您的样式以使图片更适合屏幕。典型用法如下:

@media only screen 
and (min-width : 768px) 
and (max-width : 1024px)  { /* STYLES GO HERE */}

关于html - 智能手机分辨率响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45658049/

相关文章:

css - 关于对齐两行文本的简单 Div/文本问题

javascript - 相对于其直接父元素放置绝对定位元素

javascript - Bootstrap : How can I change a modal's width with CSS without affecting other modals?

javascript - angularjs select ngoptions - 以不同的格式显示所选值

html - pandas styler 及其对 "touch"表索引 : how to work around it? 的无能

html - 我们如何使表头中的文本方向从下到上?

javascript - Jquery 菜单 fadeIn fadeOut with Timer

html - 调整 HTML 列的大小并调整整个表格的大小以匹配 div

html - float 元素和 "non floated"元素之间的交互

javascript - 获取隐藏 span 标签的文本值