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

CSS를 사용하여 지정된 값으로 시작하는 지정된 속성을 가진 요소 선택

<시간/>

[속성| ="value"] 지정된 값으로 시작하는 지정된 속성을 가진 요소를 선택하는 선택기.

다음 코드를 실행하여 CSS [속성| ="값"] 선택기,

예시

<!DOCTYPE html>
<html>
   <head>
      <style>
         [alt |= Tutor] {
            border: 5px solid orange;
            border-radius: 5px;
         }
      </style>
   </head>
   <body>
      <img src = "https://www.tutorialspoint.com/videotutorials/images/tutor_connect_home.jpg" height = "200" width="200" alt = "Tutor-Connect">
      <img src = "https://www.tutorialspoint.com/videotutorials/images/tutorial_library_home.jpg" height = "200" width="200" alt = "Tutorials-Library">
   </body>
</html>