JAVA_EE/CSS
[21.09.17] practice07(css) - inline block 활용
luvforjunk
2021. 9. 17. 19:13
728x90
반응형

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
div {
display: inline-block;
width: 200px;
border: 2px solid yellowgreen;
}
</style>
</head>
<body>
<h3>3 개의 div 활용</h3>
<hr>
<div>캔버스에 이미지를 그리기 위해서는 이미지를 담을 객체가 먼저 필요하다.</div>
<div>Image 객체의 src 프로퍼티를 이용하여 비트맵을 로드한다.</div>
<div>이미지 로딩이 끝나면 그때 비로소 이미지의 너비와 높이가 제대로 알려진다.</div>
</body>
</html>

728x90
반응형