div 배경 이미지 속성

  • hotrod
    (hotrod)
  • hotrod's Avatar 이 글의 작성자
  • Offline
  • Newbie
  • Newbie
더보기
17 Jan 2018 14:25 #3092 작성자: hotrod
hotrod 님의 글: div 배경 이미지 속성
body { 
    background-image: url('w3css.gif');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center; 
}


예:

<div style="background-image:url('위치'); height: 100%; background-repeat: no-repeat; background-position:center;">
</div>
더보기
10 Apr 2021 14:29 - 29 Apr 2021 17:44 #5231 작성자: jiuer7845
jiuer7845 님의 답글: div 배경 이미지 속성
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.
Time to create page: 0.051 seconds
Powered by Kunena Forum