如何在HTML中移动图像?
如果要在HTML中移动图像,则遵循以下步骤。使用这些步骤,我们可以轻松移动图像。
第1步:首先,我们输入
HTML 代码在任何文本编辑器中,或在我们要在其中移动图像的文本编辑器中打开现有的HTML文件。
<!Doctype Html>
<Html>
<Head>
<Title>
Move an Image
</Title>
</Head>
<Body>
Hello User!... <br> <center>
<img src="https://www.lidihuo.com/images/logo/jtp_logo.png" width="100" height="100" > </center>
</Body>
</Html>
<marquee>
<img src="https://www.lidihuo.com/images/logo.png" width="100" height="100" >
第3步:在<img>标签之后,我们关闭<marquee>标签。
<marquee>
<img src="https://www.lidihuo.com/images/logo.png" width="100" height="100" > </marquee>
第4步:最后,我们保存HTML文件,然后在浏览器中运行该文件。
<!Doctype Html>
<Html>
<Head>
<Title>
移动一个图片
</Title>
</Head>
<Body>
你好立地货!... <br> <center>
<marquee>
<img src="https://www.lidihuo.com/images/logo.png" width="100" height="100" > </marquee> </center>
</Body>
</Html>
以下屏幕截图显示了上述HTML代码的输出:
