2015-02-07 3 views
1

자신의 계정에 로그인하면 사용자 세부 정보를 편집하는 양식이있는 페이지의 Jsp 코드로 페이지의 오른쪽 상단에 사용자 이미지가 있어야하며 양식이 가운데에 있어야합니다.jsp에서 어떻게 해결할 수 있습니까?

+0

지금까지 시도한 것을 보여주십시오. 당신이 아무 것도 시도하지 않았다면 JSP 튜토리얼을 찾아 볼 것을 제안한다. –

답변

0

다음은 동적으로 그냥 문자열로 경로를 지정할 수있는 이미지를 얻으려면 다음 태그를

을 IMG의 src 속성에 변수 값을 설정하면 트릭을

<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> 

을해야 다음

<img src="<%=path%>" height="30" width="auto"><p>Jane <a href="#">LogOut</a></p> 
관련 문제