如何将图像的位置向左移动?
how can I move the position of my image to the left?
我正在尝试将我的图像的位置移到此网页的左侧,但我尝试的一切都不起作用。这是我的 html 代码:
<div class="col-md-6 col-lg-6 pl-md-5 py-5">
<div class="row justify-content-start pb-3">
<div class="col-md-12 heading-section ftco-animate">
<h1 class="big">About</h1>
<h2 class="mb-4">About Me</h2>
<p>A small river named Duden flows by their place and supplies it with the necessary regelialia.</p>
<img src = 'static/images/aman.jpg' height = 400px width = 400px left = 200px>
没有名为 left
的有效 HTML 属性。当与 position: relative
.
结合时,您可以使用 CSS 中的左 属性 移动图像
<h1 class="big">About</h1>
<h2 class="mb-4">About Me</h2>
<p>A small river named Duden flows by their place and supplies it with the necessary regelialia.</p>
<img src="http://placekitten.com/400" height="400px" width="400px" style="position:relative;left:200px">
我正在尝试将我的图像的位置移到此网页的左侧,但我尝试的一切都不起作用。这是我的 html 代码:
<div class="col-md-6 col-lg-6 pl-md-5 py-5">
<div class="row justify-content-start pb-3">
<div class="col-md-12 heading-section ftco-animate">
<h1 class="big">About</h1>
<h2 class="mb-4">About Me</h2>
<p>A small river named Duden flows by their place and supplies it with the necessary regelialia.</p>
<img src = 'static/images/aman.jpg' height = 400px width = 400px left = 200px>
没有名为 left
的有效 HTML 属性。当与 position: relative
.
<h1 class="big">About</h1>
<h2 class="mb-4">About Me</h2>
<p>A small river named Duden flows by their place and supplies it with the necessary regelialia.</p>
<img src="http://placekitten.com/400" height="400px" width="400px" style="position:relative;left:200px">