웹문서 공부2019. 2. 13. 15:02
   

#totop {position:fixed; bottom:20px; right:30px;}




<div cond="Mobile::isMobileCheckByAgent()" id="totop">

<input type="button" value="맨위로" onClick="javascript:window.scrollTo(0,0)" /></div>

또는

<input type="image" src="top.gif" onClick="javascript:window.scrollTo(0,0)" alt="맨위로" /></div>

Posted by DaumTistory