Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在wordpress上定义视口时,页脚被弄乱了_Wordpress_Responsive Design_Viewport - Fatal编程技术网

在wordpress上定义视口时,页脚被弄乱了

在wordpress上定义视口时,页脚被弄乱了,wordpress,responsive-design,viewport,Wordpress,Responsive Design,Viewport,试图使我们的wordpress主题具有响应性,从添加 无法使站点响应向其头部添加视口 尝试使用媒体查询: 您可以使用框架,如引导: 您现在可以将此代码添加到其他CSS中 @media only screen and (max-width: 768px) { #footer { float: left; background: url(images/footer.jpg) 50% 0; width: 100%; height: auto; display: flex; f

试图使我们的wordpress主题具有响应性,从添加


无法使站点响应向其头部添加视口

尝试使用媒体查询:

您可以使用框架,如引导:

您现在可以将此代码添加到其他CSS中

@media only screen and (max-width: 768px) {
#footer {
  float: left;
  background: url(images/footer.jpg) 50% 0;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
}
#footer p {
  float: left;
  width: 100%;
  margin: 40px 0 0 0;
  text-align: center;
  color: #b5b5b5;
  font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 12px;
  line-height: 18px;
}
}

这样做的目的是加载移动设备上放大的网站,添加视口只会挤压左下角的页脚徽标,在你发送的链接上会有一个OK。。。非常感谢您的回复