Computer >> 컴퓨터 >  >> 프로그램 작성 >> CSS

CSS를 사용하여 열 사이의 규칙 스타일 설정

<시간/>

열 사이의 규칙 스타일을 설정하려면 column-rule-style을 사용하세요. 특성. 다음 코드를 실행하여 column-rule-style을 구현할 수 있습니다. 재산.

예시

<!DOCTYPE html>
<html>
   <head>
      <style>
         .demo {
            column-count: 4;
            column-gap: 50px;
            column-rule-color: maroon;
            column-rule-style: dashed;
         }
      </style>
   </head>
   <body>
      <div class = "demo">
         This is demo text. This is demo text. This is demo text. This is demo text.
         This is demo text. This is demo text. This is demo text. This is demo text.
         This is demo text. This is demo text. This is demo text. This is demo text.
         This is demo text. This is demo text. This is demo text. This is demo text.
         This is demo text. This is demo text. This is demo text. This is demo text.
         This is demo text. This is demo text. This is demo text. This is demo text.
         This is demo text. This is demo text. This is demo text. This is demo text.
      </div>
   </body>
</html>