html에서div 스크롤 바 추가

1547 단어 htmlcss
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>     </title>

<style type="text/css">

	.css{
		width:50px;
		border:1px solid red;
		/*
		overflow-x:scroll;    
		overflow-x:scroll;    
		
		overflow  :                             
		overflow: auto;               
		overflow: scroll;        
		overflow-x: hidden;         
		overflow-y: scroll;          
		*/
		scrollbar-face-color: #006400;/*'          */
		scrollbar-highlight-color:   #FFFFFF;/*'           */
		scrollbar-shadow-color:   #006400;/*        */
		scrollbar-3dlight-color:    #006400;/*        */
		scrollbar-arrow-color:   #006400;  /*'            */
		scrollbar-track-color:    #006400;  /*'        */
		scrollbar-darkshadow-color:    #006400; /*'         */ }

</style>

</head>

<body>


	
    <div class="css">dsfsdfffffffffffffffffffffffffffffffffffffffffff</div>
    
    <div style="width:260px;height:120px; overflow-y:scroll; border:1px solid;">                                                                                                                                                                                    </div>

</body>
</html>

좋은 웹페이지 즐겨찾기