Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/70.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.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
Html 移动视图放大_Html_Css_Mobile - Fatal编程技术网

Html 移动视图放大

Html 移动视图放大,html,css,mobile,Html,Css,Mobile,我为一个项目开发了一个网站,里面有一些视频等。基于web浏览器的版本还可以,但手机需要放大,需要缩小才能正确显示。怎样才能在装载时达到正确的状态?我在猜测一些@media查询 我脑子里有这个 <meta content='width=device-width, initial-scale=1, maximum-scale=1' <!DOCTYPE html> <html lang="en"> <head> <meta charset='ut

我为一个项目开发了一个网站,里面有一些视频等。基于web浏览器的版本还可以,但手机需要放大,需要缩小才能正确显示。怎样才能在装载时达到正确的状态?我在猜测一些@media查询

我脑子里有这个

<meta content='width=device-width, initial-scale=1, maximum-scale=1' <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset='utf-8'>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport' />

    <title>ReBreak News</title>

    <link rel='icon' type='image/png' href='/favicon.png'>
    <link rel='stylesheet' href='/global.css'>
    <link rel='stylesheet' href='/build/bundle.css'>
    <link rel="stylesheet" href="/bootstrap.min.css"></script>
    <link rel="stylesheet" href="/fontawesome/css/fontawesome.min.css"></script>

    <script src="jquery.js"></script>
    <script src="fontawesome.js"></script>
    <script defer src='/build/bundle.js'></script>
    <script src="bootstrap.js"></script>
</head>

谢谢

请粘贴HTML和CSS代码。我已经更新了我的帖子。问题是它基于组件,所以在一些组件中有更多的代码。我添加了index.html,
:root {
  --gradient: linear-gradient(90deg, #ff0000 0%, #ff0000 100%);
  --light: #fff;
  --grey: #f8f9fa;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
}
.main-bgcolor {
  background-image: var(--gradient);

}
.main-bgcolor2 {
background-color: #ffffff;
}
.light-color {
  color: var(--light) !important;
}
.grey-bgcolor {
  background: var(--grey);
}
.company_brand {
  font-size: x-large;
  font-family: cursive;
}

.section {
  padding: 50px 0;
}

.section-body {
  padding: 20px 0;
}

.h1{

  color: blueviolet;
}