【问题标题】:In in-line CSS syntax. How do I place an image called image.jpg in absolute position of 10 pixels to the left and 10 pixels to the top内联 CSS 语法。如何将名为 image.jpg 的图像放置在左侧 10 像素和顶部 10 像素的绝对位置
【发布时间】:2021-05-10 08:33:36
【问题描述】:

采用内联 CSS 语法,将名为 image.jpg 的图像放置在左侧 10 像素和顶部 10 像素的绝对位置。

我不知道从哪里开始。我对此很陌生。

【问题讨论】:

标签: css syntax helper


【解决方案1】:

这样写:

<img  style="position: absolute;top:10px;left:10px" src="image.jpg" alt="image">

【讨论】:

    猜你喜欢
    • 2012-01-04
    • 1970-01-01
    • 2012-06-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-12-04
    • 2021-08-25
    • 2014-06-02
    相关资源
    最近更新 更多