g
Element의 배경색이나 무늬를 지정할 수 있다.
<!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>
<title>15.배경관련스타일</title>
</head>
<body>
<!--배경색 Yellow로 잡아준다 -->
<span style="background-color:Yellow;"></span><br />
<textarea id="TextArea1" cols="25" rows="28"
style="
background-color:Yellow;
background-image:url('./images/태연.jpg');
각각의 repeat-x, position:top, attachment:scroll 의 속성을 각각 설정
background-repeat:repeat-x;
background-position:top bottom;
background-attachment:scroll;
"
</textarea>
</body>
</html>
'.Net Project > CSS 2.0' 카테고리의 다른 글
17장 LinkStyle (0) | 2009.07.28 |
---|---|
16장 CusorStyle (0) | 2009.07.28 |
14장 테두리 외곽선 스타일 (0) | 2009.07.28 |
13장 여백관련Style (0) | 2009.07.28 |
12장 TextStyle (0) | 2009.07.28 |