CSS 버튼

· 8년 전 · 2252

CSS 버튼


기본 버튼 스타일


.button {

    background-color: #4CAF50; /* Green */

    border: none;

    color: white;

    padding: 15px 32px;

    text-align: center;

    text-decoration: none;

    display: inline-block;

    font-size: 16px;

}


[전체소스]

<!DOCTYPE html>

<html>

<head>

<style>

.button {

    background-color: #4CAF50;

    border: none;

    color: white;

    padding: 15px 32px;

    text-align: center;

    text-decoration: none;

    display: inline-block;

    font-size: 16px;

    margin: 4px 2px;

    cursor: pointer;

}

</style>

</head>

<body>


<h2>CSS Buttons</h2>


<button>Default Button</button>

<a href="#" class="button">Link Button</a>

<button class="button">Button</button>

<input type="button" class="button" value="Input Button">


</body>

</html>


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

퍼블리셔팁

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

+
분류 제목 글쓴이 날짜 조회
CSS 8년 전 조회 1,712
CSS 8년 전 조회 1,762
CSS 8년 전 조회 2,192
CSS 8년 전 조회 1,755
CSS 8년 전 조회 2,001
CSS 8년 전 조회 1,805
CSS 8년 전 조회 1,677
CSS 8년 전 조회 2,019
CSS 8년 전 조회 1,611
CSS 8년 전 조회 1,728
CSS 8년 전 조회 1,812
CSS 8년 전 조회 1,828
CSS 8년 전 조회 1,619
CSS 8년 전 조회 4,332
CSS 8년 전 조회 2,253
CSS 8년 전 조회 2,655
CSS 8년 전 조회 2,181
CSS 8년 전 조회 2,113
CSS 8년 전 조회 1,980
CSS 8년 전 조회 2,262
CSS 8년 전 조회 2,022
CSS 8년 전 조회 2,168
CSS 8년 전 조회 2,539
CSS 8년 전 조회 1,879
CSS 8년 전 조회 2,483
CSS 8년 전 조회 1,925
CSS 8년 전 조회 1,708
CSS 8년 전 조회 1,407
CSS 8년 전 조회 1,702
CSS 8년 전 조회 2,496