编辑下面的代码:【加编码】
<html> <head> <base href="/static/images/"> </head> <body> <p><img src="/demo/stickman.gif" width="24" height="39" alt="Stickman"> - Notice that we have only specified a relative address for the image. Since we have specified a base URL in the head section, the browser will look for the image at "/static/images/stickman.gif".</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂