Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的 JSF 应用程序中定义了一个图像:
<h:graphicImage library="myPath" name="myImg"/>
结果我的HTML输出:
<img src="bla-bla-bla" alt="" />
它工作正常,但我有一个问题。在这种情况下如何设置altHTML 标签的属性img?例如
alt
img
<h:graphicImage library="myPath" name="myImg" alt="myText"/>
不工作...