테스트 사이트 - 개발 중인 베타 버전입니다

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

· 8년 전 · 1805

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>



댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
3133
3132
3131
3130
3129
3128
3127
3121
3120
3112
3111
3110
3109
3108
3107
3105
3104
3103
3101
3100
3099
3098
3097
3096
3094
3093
3092
3090
3089
3088