2

我是 Bootstrap 的新手,使用 bootstrap 开发了一个网页,我的页面在 pc/笔记本电脑浏览器上运行良好,但是当我使用 uc 浏览器时,我的网格布局不起作用。有什么办法可以解决这个问题吗?这是我的代码:

<!DOCTYPE html>
<html>
<head>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>MD</title>
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>

<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css"
href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
<link
href="https://fonts.googleapis.com/css?family=Lato:100,300,400,700"
rel="stylesheet">

</head>
<body>
<div class="container">
	<section class="itsolutions" id="it">
		<h2>IT Solutions</h2>
		<div class="row">
			<div class="col-lg-6 col-sm-12 col-12">
				<i class="ion-settings icon-big ic"></i>
				<h3>Website Design & Development</h3>
				<p>texts</p>
			</div>
			<div class="col-lg-6 col-sm-12 col-12">
				<i class="ion-android-bulb icon-big ic"></i>
				<h3>Software Solutions</h3>
				<p>texts</p>
			</div>
		</div>
	</section>
</div>
</body>
</html>

4

2 回答 2

0

欢迎您使用 Bootstrap。您只需要更改您的 html 代码的某些部分,即可使用引导类来实现超小 (xs)比例。

<div class="row">
    <div class="col-lg-6 col-sm-12 col-xs-12"> <!--Here is changed-->
        <i class="ion-settings icon-big ic"></i>
        <h3>Website Design & Development</h3>
        <p>texts</p>
    </div>
    <div class="col-lg-6 col-sm-12 col-xs-12"> <!--Here is changed-->
        <i class="ion-android-bulb icon-big ic"></i>
        <h3>Software Solutions</h3>
        <p>texts</p>
    </div>
</div>

链接也可以帮助您了解哪个类与哪个屏幕宽度(以像素为单位)相关。

于 2018-03-04T10:19:11.183 回答
0

一般来说,Bootstrap 支持各大平台默认浏览器的最新版本。请注意,不支持代理浏览器(例如 Opera Mini、Opera Mobile 的 Turbo 模式、UC 浏览器、Amazon Silk)。

于 2018-05-21T21:24:48.620 回答