如何在SAPUI5中将文本放在图像上?

问题描述 投票:0回答:1

如何在SAPUI5中将居中文本放在图像上?像html中的这个例子:https://www.w3schools.com/css/tryit.asp?filename=trycss_transparency

sapui5
1个回答
0
投票
<html:div class="background">
   <html:div class="transbox">
        <html:p>
             This is some text that is placed in the transparent box.
        </html:p>
  </html:div>

xmlns:html =“http://www.w3.org/1999/xhtml”将此名称空间添加到您的视图中。

  • 使用您使用的w3school示例中给出的相同CSS
  • 此示例仅适用于XML视图Screen shot of my SAPUI5 app below
© www.soinside.com 2019 - 2024. All rights reserved.