该网站在移动版本上显示不正确
The site is displayed incorrectly on the mobile version
问题的症结在于,当我通过我的phone访问我的网站时,移动布局滑出,即只显示了某个部分,可以说该网站的2/3显示宽度,所以我必须移开以便正确显示该站点。而且我需要网站在整个屏幕上完整显示,而不是部分显示。
要查看问题,我建议从您的 phone 登录。
My site
@media all and (max-width: 479px) {
.container {
max-width: 479px;
}
.header {
background-image: url('/img/header-767.png');
padding: 10px 0px 10px;
&-section {
margin: 0 auto;
}
&-item {
display: none;
&-2 {
display: none;
}
}
&-logo {
font-size: 12px;
}
span {
display: none;
}
}
.banner {
margin: -1px 0;
background-image: url(/img/Banner-479.svg);
&-text {
padding-top: 35px;
padding-bottom: 55px;
padding-left: 110px;
font-size: 20px;
}
}
.product {
margin-top: -20px;
&-text {
font-size: 36px;
}
.product-item {
margin: 15px 90px 0px;
}
.product-list {
display: table-caption;
margin-right: 0px;
margin-bottom: 30px;
}
}
.portfolio {
margin-left: 105px;
margin-right: 114px;
.portfolio-title {
font-size: 36px;
margin-top: -20px;
}
.portfolio-items {
grid-template: repeat(8, 1fr) / repeat(1, 1fr);
gap: 15px;
}
}
.order {
background-image: url('/img/Order-479.svg');
margin-top: 15px;
padding-bottom: 90px;
h1 {
font-size: 36px;
}
h3 {
margin-top: 15px;
margin-left: 10px;
margin-right: 182px;
font-size: 10px;
}
}
.buy {
background-image: url('/img/buy-479.svg');
margin-top: 15px;
padding-bottom: 150px;
h1 {
font-size: 36px;
}
h3 {
font-size: 10px;
margin-top: 15px;
margin-left: 10px;
}
}
.about {
background-image: url('/img/about-479.svg');
background-position: 0px 45px;
margin-top: 15px;
padding-bottom: 30px;
h1 {
font-size: 36px;
}
h3 {
font-size: 10px;
margin-top: 15px;
margin-left: 210px;
}
}
如果您需要更多代码,请告诉我。
尝试写第一行css风格
{
margin: 0;
padding: 0;
box-sizing: border-box;
}
问题的症结在于,当我通过我的phone访问我的网站时,移动布局滑出,即只显示了某个部分,可以说该网站的2/3显示宽度,所以我必须移开以便正确显示该站点。而且我需要网站在整个屏幕上完整显示,而不是部分显示。 要查看问题,我建议从您的 phone 登录。 My site
@media all and (max-width: 479px) {
.container {
max-width: 479px;
}
.header {
background-image: url('/img/header-767.png');
padding: 10px 0px 10px;
&-section {
margin: 0 auto;
}
&-item {
display: none;
&-2 {
display: none;
}
}
&-logo {
font-size: 12px;
}
span {
display: none;
}
}
.banner {
margin: -1px 0;
background-image: url(/img/Banner-479.svg);
&-text {
padding-top: 35px;
padding-bottom: 55px;
padding-left: 110px;
font-size: 20px;
}
}
.product {
margin-top: -20px;
&-text {
font-size: 36px;
}
.product-item {
margin: 15px 90px 0px;
}
.product-list {
display: table-caption;
margin-right: 0px;
margin-bottom: 30px;
}
}
.portfolio {
margin-left: 105px;
margin-right: 114px;
.portfolio-title {
font-size: 36px;
margin-top: -20px;
}
.portfolio-items {
grid-template: repeat(8, 1fr) / repeat(1, 1fr);
gap: 15px;
}
}
.order {
background-image: url('/img/Order-479.svg');
margin-top: 15px;
padding-bottom: 90px;
h1 {
font-size: 36px;
}
h3 {
margin-top: 15px;
margin-left: 10px;
margin-right: 182px;
font-size: 10px;
}
}
.buy {
background-image: url('/img/buy-479.svg');
margin-top: 15px;
padding-bottom: 150px;
h1 {
font-size: 36px;
}
h3 {
font-size: 10px;
margin-top: 15px;
margin-left: 10px;
}
}
.about {
background-image: url('/img/about-479.svg');
background-position: 0px 45px;
margin-top: 15px;
padding-bottom: 30px;
h1 {
font-size: 36px;
}
h3 {
font-size: 10px;
margin-top: 15px;
margin-left: 210px;
}
}
如果您需要更多代码,请告诉我。
尝试写第一行css风格
{
margin: 0;
padding: 0;
box-sizing: border-box;
}