在Firefox响应模式下可以正常工作,但不能在Chrome上运行。
build/libs/checking-docker-0.0.1-SNAPSHOT.war: line 1: $'PK\003\004': command not found
build/libs/checking-docker-0.0.1-SNAPSHOT.war: line 2:5F,Morg/PK: No such file or directory
build/libs/checking-docker-0.0.1-SNAPSHOT.war: line 3:5F,Morg/springframework/PK: No such file or directory
build/libs/checking-docker-0.0.1-SNAPSHOT.war: line 4:5F,Morg/springframework/boot/PK: No such file or directory
build/libs/checking-docker-0.0.1-SNAPSHOT.war: line 5: $'\b5F,M': command not found
build/libs/checking-docker-0.0.1-SNAPSHOT.war: line 6:5F,M%org/springframework/boot/loader/data/PK: No such file or directory
build/libs/checking-docker-0.0.1-SNAPSHOT.war: line 7:5F,M/springframework/boot/loader/jar/PK: No such file or directory
build/libs/checking-docker-0.0.1-SNAPSHOT.war: line 8: syntax error near unexpected token `$'org/springframework/boot/loader/archive/PK\003\004''
build/libs/checking-docker-0.0.1-SNAPSHOT.war: line 8: 5F,M(org/springframework/boot/loader/archive/PK'
* {
margin: 0;
padding: 0;
}
body {
background: royalblue;
font-family: monospace;
}
header {
position: relative;
top: 0px;
margin: 0 auto;
width: 100%;
background: red;
}
.nav {
position: relative;
top: 0px;
list-style: none;
text-align: center;
padding: 10px 0;
}
.nav li {
margin: -3px;
display: inline-block;
padding: 7px 3px;
border-left: 1px solid silver;
}
#log {
border-right: 1px solid silver;
}
.nav a {
position: relative;
text-decoration: none;
color: silver;
padding: 10px 50px;
font-size: 15px;
}
li:hover {
background: black;
}
/* 800px ============================= */
@media screen and (max-width: 820px) {
body {
background: green;
}
.nav {
position: relative;
top: 0px;
list-style: none;
text-align: center;
padding: 8px 0; /* nav padding */
}
.nav li {
margin: -3px;
display: inline-block;
padding: 2px 3px;
border-left: 1px solid silver;
}
#log {
border-right: 1px solid silver;
}
.nav a {
position: relative;
text-decoration: none;
color: silver;
padding: 5px 40px;
font-size: 14px;
}
}
/* 680px ============================= */
@media screen and (max-width:681px) {
body {
background: royalblue;
}
.nav {
position: relative;
top: 0px;
list-style: none;
text-align: center;
padding: 8px 0; /* nav padding */
}
.nav li {
margin: -3px;
display: inline-block;
padding: 2px 3px;
border-left: 1px solid silver
}
#log {
border-right: 1px solid silver;
}
.nav a {
position: relative;
text-decoration: none;
color: silver;
padding: 5px 30px;
font-size: 14px;
}
}
/* 500px ============================= */
@media screen and (max-width: 590px) {
body {
background: green;
}
.nav {
position: relative;
top: 0px;
list-style: none;
text-align: center;
padding: 8px 0; /* nav padding */
}
.nav li {
margin: -3px;
display: inline-block;
padding: 2px 3px;
border-left: 1px solid silver;
}
#log {
border-right: 1px solid silver;
}
.nav a {
position: relative;
text-decoration: none;
color: silver;
padding: 5px 25px;
font-size: 13px;
}
}
答案 0 :(得分:2)
您是否尝试过将<meta name="viewport" content="width=device-width,initial-scale=1">
添加到html代码的<head>
部分中。