div 배경 이미지 속성

조회 2,078 · 댓글 1
hhotrod작성자2018년 1월 17일
body { 

background-image: url('w3css.gif');
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
}



예:


jjiuer78452021년 4월 10일
Span and div.

The span element was introduced to HTML in the internationalization working group's second draft html-i18n in 1995. However, it was not until HTML 4.01 that it became part of the HTML language, appearing in the HTML 4 W3C Working Draft in 1997.

In 1995, span was introduced to mark up any inline span of text, because 'a generic container is needed to carry the LANG and BIDI attributes in cases where no other element is appropriate.' It still serves that general purpose, although a much richer range of semantic elements have been defined since then, and there are also many more attributes that may need to be applied.

div defines a 'division' of the document, a block-level item that is more distinct from elements above and below it than a span of inline material.

로그인 후 답글을 남길 수 있습니다.