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.
私は Eclipse で Tomcat サーバーを使用しており、html ファイルに背景画像を追加したいと考えています。しかし、画像のパスを設定する方法がわかりません。解決策を見つけるのを手伝ってください。
前もって感謝します!
webapp からの相対パスを ROOT として設定できます。イメージがビルドに含まれ、前述のビルド パスにコピーされていることを確認します。
また、html とともに以下のタグを使用する必要があります。
img src="<.jpg>" alt="<valid name" style="width:303px;height:221px;" tags to HTML page