1
幫我使用一個頁面的Jsp代碼,當他登錄到他的賬戶後,它具有編輯用戶詳細信息的形式,頁面的右上側必須有用戶圖像,表單必須位於中間。如何在jsp中解決這個問題?
幫我使用一個頁面的Jsp代碼,當他登錄到他的賬戶後,它具有編輯用戶詳細信息的形式,頁面的右上側必須有用戶圖像,表單必須位於中間。如何在jsp中解決這個問題?
下應該做的伎倆
<div class="main" style="clear:both;float: left;width:100%;" >
<div class="topRight" style="width:100%;float: left;" align="right">
<img src="images/pic.jpg" height="30" width="auto"><p>Jane <a href="#">LogOut</a></p>
</div>
<div class="content" style="width:100%;float: left;" align="center">
<form>
<input type="text" name="un" placeholder="Name">
<input type="submit" value="Submit"><input type="reset" value="Reset">
</form>
</div>
</div>
如果你想獲得的圖像動態地可以在路徑只分配給一個字符串,然後設置變量值的src屬性在img標籤
<img src="<%=path%>" height="30" width="auto"><p>Jane <a href="#">LogOut</a></p>
請告訴我們你到目前爲止所嘗試過的。如果你還沒有嘗試過任何東西,那麼我建議你可能會尋找JSP教程。 – 2015-02-07 20:08:10