html图片动态增加文字

<body>
<!--
<div class="logo">
    <img src="${imagePath}/disc.PNG" height="848" width="1196"/>
    helloword
</div>
-->

<div style="position:relative;">
      <img src="${imagePath}/disc.PNG" height="848" width="1196"/>
      <div style="position:absolute; z-index:2; left:100px; top:100px">结果1</div>
      <div style="position:absolute; z-index:2; left:400px; top:300px">结果2</div>
      <div style="position:absolute; z-index:2; left:400px; top:300px">结果3</div>
      <div style="position:absolute; z-index:2; left:400px; top:300px">结果4</div>
</div>

</body>
</html>

  后期可以把结果1234换成模板获取

上一篇:Harmonic Number LightOJ - 1234(暴力分段打表 / 欧拉爷爷的O(1))


下一篇:C++ string和char类型字符串转换代码