代码示例:(标识:css_image_text_top_left)
<!DOCTYPE html>
<html>
<head>
<style>
.container {
  position: relative;
}

.topleft {
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 18px;
}

img { 
  width: 100%;
  height: auto;
  opacity: 0.3;
}
</style>
</head>
<body>

<h1>图像文本</h1>

<p>在图像左上角添加一些文本:</p>

<div class="container">
  <img src="/static/demo/images/logo-2.png" alt="(www.sou-xun.com)" width="800" height="450">
  <div class="topleft">Top Left</div>
</div>

</body>
</html>
运行结果: