内容比我的手机屏幕宽,不知道如何解决。这是移动网站的完整代码。
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;
}
}
答案 0 :(得分:1)
将此代码添加到您的css文件中,它应该对您有用
iframe {
max-width: 100%;
}
.rst-copyright img {
max-width: 100%;
height: auto;
}
您在另一个iframe中的iframe中使用了iframe,这不是一个好主意
答案 1 :(得分:0)