簡體   English   中英

無法從外部鏈接獲取img src

[英]Unable to get the img src from the external link

我有一個Html頁面,上面有一個圖像標簽,我想顯示一個已部署在外部webApplication中的圖像。當我在瀏覽器中瀏覽該鏈接時,它正在工作,但是當我將該鏈接添加到img src中時,它不起作用工作中

<img id="empPic" alt="" src="http://xyz/emp/displayImage.jsp?empId=7" width="90px" height="100px" style="border-radius: 12px;">
src="http://xyz/emp/displayImage.jsp?empId=7"

Serversscript必須為您提供圖像數據,而不是圖像的引用。

如果jsp僅給您提供參考,則必須先接收參考並將其設置在src-attribute中

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM