CSS 버튼

· 8년 전 · 2259

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,714
CSS 8년 전 조회 1,763
CSS 8년 전 조회 2,193
CSS 8년 전 조회 1,760
CSS 8년 전 조회 2,007
CSS 8년 전 조회 1,810
CSS 8년 전 조회 1,681
CSS 8년 전 조회 2,025
CSS 8년 전 조회 1,616
CSS 8년 전 조회 1,731
CSS 8년 전 조회 1,817
CSS 8년 전 조회 1,833
CSS 8년 전 조회 1,622
CSS 8년 전 조회 4,333
CSS 8년 전 조회 2,260
CSS 8년 전 조회 2,657
CSS 8년 전 조회 2,183
CSS 8년 전 조회 2,117
CSS 8년 전 조회 1,984
CSS 8년 전 조회 2,266
CSS 8년 전 조회 2,025
CSS 8년 전 조회 2,173
CSS 8년 전 조회 2,543
CSS 8년 전 조회 1,880
CSS 8년 전 조회 2,487
CSS 8년 전 조회 1,931
CSS 8년 전 조회 1,710
CSS 8년 전 조회 1,410
CSS 8년 전 조회 1,706
CSS 8년 전 조회 2,500