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

CSS가 있는 요소 뒤에 일부 콘텐츠를 삽입하는 데 사용되는 요소

<시간/>

:after 요소를 사용하여 요소 뒤에 내용을 추가합니다.

예시

CSS −

가 있는 요소 뒤에 일부 콘텐츠를 삽입하기 위해 다음 코드를 실행할 수 있습니다.
<html>
   <head>
      <style>
         p:after
         {
            content: url(/images/bullet.gif)
         }
      </style>
   </head>
   <body>
      <p> This line will be succeeded by a bullet.</p>
      <p> This line will be succeeded by a bullet.</p>
      <p> This line will be succeeded by a bullet.</p>
   </body>
</html>