CSS 버튼

· 8년 전 · 2317

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,777
CSS 8년 전 조회 1,826
CSS 8년 전 조회 2,235
CSS 8년 전 조회 1,823
CSS 8년 전 조회 2,060
CSS 8년 전 조회 1,872
CSS 8년 전 조회 1,734
CSS 8년 전 조회 2,090
CSS 8년 전 조회 1,678
CSS 8년 전 조회 1,797
CSS 8년 전 조회 1,884
CSS 8년 전 조회 1,899
CSS 8년 전 조회 1,704
CSS 8년 전 조회 4,403
CSS 8년 전 조회 2,318
CSS 8년 전 조회 2,715
CSS 8년 전 조회 2,247
CSS 8년 전 조회 2,182
CSS 8년 전 조회 2,057
CSS 8년 전 조회 2,328
CSS 8년 전 조회 2,092
CSS 8년 전 조회 2,229
CSS 8년 전 조회 2,622
CSS 8년 전 조회 1,948
CSS 8년 전 조회 2,551
CSS 8년 전 조회 1,976
CSS 8년 전 조회 1,763
CSS 8년 전 조회 1,455
CSS 8년 전 조회 1,781
CSS 8년 전 조회 2,552