jquery - 在图像中定位图像

标签 jquery html css

如何在大图片的右上角放置一个小图像,例如 App Store 图标上带有数字的弹出窗口?

问候

米妮

最佳答案

只需创建一个包含图像和小图像的 div:

<div style="position:relative">
   <img src="...image-url...">
   <img src="...small-image-url..."
        style="position:absolute; right:0px; top:0px;">
</div>

关于jquery - 在图像中定位图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21203558/

相关文章:

html - img 元素上带有空格的行

html - 如何在没有 flex-wrap 的 ionic 框架中制作每行包含两个图像的图像网格 :wrap;

html - Primeng 样式在 Angular 4 中不起作用

javascript - 将非html文本封装在html文档中

javascript - Z-index 大于 Fancybox?

html - 为什么我的 div 没有向左浮动?

html - 有没有办法将 html 类名指定为偶数(而不是奇数)以获得偶数 css 属性?

php - 如何为使用 javascript 加载的内容添加书签

php - 有谁知道如何检查 href 是否等于 smarty 中的当前页面链接?

html - ie8 - 当图像只有最大宽度时,将文本宽度限制为图像宽度