gpt4 book ai didi

html - 移动设备中的内容比屏幕宽 - 如何修复?

转载 作者:行者123 更新时间:2023-11-28 14:34:09 25 4
gpt4 key购买 nike

内容比我的手机屏幕宽,不知道如何解决。这是移动站点的完整代码。

www.latoyah.co.uk是我的网页,但只影响移动设备。

Google 回来说它正在影响可用性。

文本在左侧略微被截断。我会更改文本大小,但显然只有那个已经太小而无法阅读了。

/*************************************************
* Mobile Portrait *
*************************************************/

@media only screen and (max-width: 480px) {

.subscribe-box .block,.container {
width:320px;
}

.background-slider {
height: 320px !important;
}
#top-search{display:none}
#top-social {
float: right;
position: absolute;
z-index: 999999999999999;
right: 0;
}


#navigation-wrapper {
display:none;
}

.slicknav_menu {
display:block;
}

#logo img {
max-width:320px;
height:auto;
}

.post-header h1 a, .post-header h2 a, .post-header h1 {
font-size:22px;
letter-spacing:2px;
}

.post-image img {
width:320px;
height:auto;
}

.post-image.audio iframe {
width:320px;
height:auto;
}

.item-related {
width:320px;
margin-bottom:30px;
}

.share-box {
width:36px;
height:36px;
line-height:36px;
margin:0 4px;
}

.post-pagination .prev-post {
width:320px;
}
.post-pagination .next-post {
width:320px;
}

#respond textarea {
width:90%;
}

.thecomment .author-img {
display:none;
}

#widget-area .widget, #sidebar .widget {
width:320px;
margin-right:32px;
float:left;
margin-bottom:35px;
}

#footer-logo img {
max-width:320px;
height:auto;
}

#footer-social a i {
height:28px;
width:28px;
line-height:28px;
margin-right:0;
font-size:12px;
}
#footer-social a {
margin:0 5px;
}
#footer-social a span{
display:none;
}

.wpcf7 textarea {
width:75%;
}

.sp-grid li {
width:320px;
}
.sp-grid li:nth-child(3n+3) {
margin-right:0;
}
.sp-grid li:nth-child(2n+2) {
margin-right:0;
}

.container.sp_sidebar #main {
width:99%;
margin-right:0;
}
.container.sp_sidebar #sidebar {
width:100%;
}

.container.sp_sidebar #sidebar .widget {
width:80%;
}

#sidebar {

float: left;

}


.container.sp_sidebar .item-related {
width:212px;
margin-bottom:30px;
}

.my-insta-box {
display: none;
}


#footer-social a {

border-left: none;

padding-left: 0px;
}
.subscribe-box .form,.subscribe-box .caption {width: 100%;}
.caption img {width: 100%;}

.subscribe-box .form .email {width: 200px;}


.header-top #top-social, .header-top #top-search {
position: static;
margin: 0 0px 0 0;
padding: 0;
list-style: none;
display: inline-block;
}
article:nth-child(2n+2) {
margin-right: 0;
}
.post {

width: 100%;

}

.header-top #top-search {
float: right;
}
.owl-nav {
display: none;
}


.rst-copyright .copyright {
position: static;
text-align: center;
display: block;
}

.rst-copyright .rst-social-menu {
position: static!important;
margin-top: 24px;
display: block;
text-align: center;
}

}

最佳答案

将此代码添加到您的 css 文件中它应该适合您

iframe {
max-width: 100%;
}

.rst-copyright img {
max-width: 100%;
height: auto;
}

enter image description here

您已经在另一个 iframe 中的 iframe 中使用了 iframe,这不是一个好主意

关于html - 移动设备中的内容比屏幕宽 - 如何修复?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53738790/

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