Computer >> Hướng Dẫn Máy Tính >  >> Lập Trình >> CSS

CSS Link Color: Khóa Học, Training Và Tài Nguyên Khác

Cách Học CSS Link Colors

Bạn có thể học CSS Link Colors bằng cách xem các khóa học và training resources sau. Đi sâu vào link bạn quan tâm nhất.

CSS Link Colors Là Gì

CSS Link Colors kiểm soát màu của embedded links trên web page. Khi thêm link, màu của nó được kiểm soát bởi styling options. Có thể đổi màu phù hợp template dùng các phương pháp: inline styling, CSS stylesheets, tùy color scheme của application.

CSS Link Colors Dùng Làm Gì

CSS Link Colors kiểm soát màu embedded links trong web page.

  • Dùng định nghĩa embedded links màu khác text để nổi bật.

Học CSS Link Colors

Có thể học CSS Link Colors trên website này. W3schools guide cung cấp cách đổi color scheme. Resource này dạy các stage link trải qua khi user interact và cách style link như button bằng CSS.

Cũng xem website CSS Basics để đọc tips và tricks style link.

Mất Bao Lâu Để Học CSS Link Colors

Thời gian học CSS Link Colors phụ thuộc vào bạn và commitment/discipline học topic.

Học CSS Link Colors: Bước Đi Bước

  1. 4 Link states: a:active, a:hover, a:visited, a:link. Tham khảo ví dụ:
    /* A link that has not been visited */
    a:link { color: pink; }
    /* A link that has been visited */
    a:visited { color: blue; }
    /* A link that is hovered on */
    a:hover { color: red; }
    /* A link that is selected */
    a:active { color: green; }
  2. Link color quan trọng để emphasize link. Ví dụ:
    a { color: green; }
  3. Text Decoration 4 giá trị: underline, overline, line-through, none. Đổi properties:
    a:link { text-decoration: none; }
    a:visited { text-decoration: none; }
    a:hover { text-decoration: underline; }
    a:active { text-decoration: underline; }
  4. Background Color cũng set được cùng link color. Ví dụ:
    a:link { background-color: green; }
    a:visited { background-color: blue; }
    a:hover { background-color: red; }
    a:active { background-color: pink; }

CSS Link

Nên Học CSS Link Colors Không?

Học CSS Link Colors nếu muốn customize page sâu hơn. Cũng hữu ích hiểu logic behind the magic.