html - 如何使图像 css 不在文本处移动?

标签 html css image position

我有这个演示:http://vestigedayz.com/sys/adminexec/Test/

我已经在上面放了一张图片(右边,那个文件夹图标),但是我不想在我随机在键盘上打字时让它移动。

.image{
    padding-left:1100px;
    position:fixed;

    }


    <a href=""> 
<div class="image">
<img src="images/suspect.png" width="160" height="140" alt=""> 
</div>
</a>

最佳答案

将右侧和顶部更改为您想要的。

position:absolute; 右:50px; 顶部:10px;

丢失: 左填充:1100px; 位置:固定;

关于html - 如何使图像 css 不在文本处移动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40094864/

相关文章:

javascript - Image.complete 在 onload 之后为真,但在 onload 第二张图片之后不再

html - 在 html5 日期输入中居中文本

jQuery next, parent, closest

html - 如何选择目录保存输出?

javascript - html 下拉菜单在 firefox 中不起作用,在旧版本的 IE 中一切都是错误的

Javascript 点击打开和关闭菜单,不使用 jquery

html - 在图形标签内居中 div

html - 添加额外元素时标题和正文之间奇怪的额外间距

css - 将鼠标悬停在 Chrome 中的元素上后,工具提示图像卡住

java - 当我在我的 GUI 上播放歌曲时,JButton 一直被按下,我无法点击任何东西