gpt4 book ai didi

css - 使用 Oracle ADF Mobile 的按钮图像路径

转载 作者:行者123 更新时间:2023-11-28 15:29:04 24 4
gpt4 key购买 nike

我想在按钮上附加图像,如何使用 CSS 为按钮放置图像?

这是我为按钮使用的 CSS:

.amx-commandButton .btnSample{background: url("../Login/login1.png") ;
background-image: inherit;
background-repeat: no-repeat;
background-position: center; }

login1.pngLogin 文件夹中的图像。此图像未附加到按钮上。

这是 amx 文件中的按钮声明:

<amx:commandButton text="" id="cb1" action="login"
inlineStyle="color:White; height:42px; width:120px;" styleClass="btnSample"
/>

最佳答案

尝试这样的事情

background-image:url('../FARs/ProjectName/public_html/skins/images/icons/disclosureArrow.png')

所有验证文件是否存在于部署文件夹中的该路径中。

关于css - 使用 Oracle ADF Mobile 的按钮图像路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23286197/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com