【发布时间】:2019-05-09 13:47:47
【问题描述】:
我正在从事营销项目,我希望允许客户配置他们的登录页面,其中将包含图像作为广告,页面布局将是这样的
--------------------------------------------------------------------------
| Horizontal ADS AS IMAGE |
--------------------------------------------------------------------------
| V | | V |
| E | | E |
| R | | R |
| T | MAIN | T |
| I | | I |
| C | | C |
| A | | A |
| L | | L |
我尝试了很多但没有成功。手机打开的页面设计会很差,左竖图会显示在上横图下方,然后是主区,然后右竖图会显示在主区下方, 我不知道如何让设计在主要部分中保留在计算机中,我将添加视频, 所以请告诉我我该怎么做 我尝试使用此代码,但正如我所说,当手机打开页面时设计会非常糟糕
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 3 Responsive Layout Example</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-sm-6 col-md-8 col-lg-12">
<img src="728x90.png"/>
</div>
</div>
<div class="row">
<div class="col-sm-3 col-md-4 col-lg-2">
<img src="fdf_9x_en.jpg" />
</div>
<div class="col-sm-6 col-md-4 col-lg-8">
<h2>CSS</h2>
<p>CSS is used for describing the presentation of web pages. The CSS tutorial section will help you learn the essentials of CSS, so that you can fine control the style and layout of your HTML document.</p>
<p><a href="https://www.tutorialrepublic.com/css-tutorial/" target="_blank" class="btn btn-success">Learn More »</a></p>
</div>
<div class="col-sm-3 col-md-4 col-lg-2">
<img src="fdf_9x_en.jpg" />
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-12">
<footer>
<p>© Copyright 2013 Tutorial Republic</p>
</footer>
</div>
</div>
</div>
</body>
</html>
fdf_9x_en.jpg 是垂直图像
【问题讨论】:
标签: html responsive-design bootstrap-4