css Advanced - Link Buttons 고급 - 링크 버튼 > 퍼블리셔팁

퍼블리셔팁

퍼블리싱과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.

css Advanced - Link Buttons 고급 - 링크 버튼 정보

CSS css Advanced - Link Buttons 고급 - 링크 버튼

본문

css Advanced - Link Buttons  고급 - 링크 버튼

 

이 예제는 몇 가지 CSS 속성을 결합하여 링크를 상자 / 버튼으로 표시하는 고급 예제를 보여줍니다.

 

a:link, a:visited {

    background-color: #f44336;

    color: white;

    padding: 14px 25px;

    text-align: center; 

    text-decoration: none;

    display: inline-block;

}

 

a:hover, a:active {

    background-color: red;

}

 

 

 

<!DOCTYPE html>

<html>

<head>

<style>

a:link, a:visited {

    background-color: #f44336;

    color: white;

    padding: 14px 25px;

    text-align: center;

    text-decoration: none;

    display: inline-block;

}

 

 

a:hover, a:active {

    background-color: red;

}

</style>

</head>

<body>

 

<a href="default.asp" target="_blank">This is a link</a>

 

</body>

</html>

d3bc18f8bef993aa478b35f093a30d3a_1488035637_2841.png

추천
0
  • 복사

댓글 0개

© SIRSOFT
현재 페이지 제일 처음으로