CSS 버튼

· 8년 전 · 2321

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,779
CSS 8년 전 조회 1,827
CSS 8년 전 조회 2,239
CSS 8년 전 조회 1,824
CSS 8년 전 조회 2,062
CSS 8년 전 조회 1,874
CSS 8년 전 조회 1,738
CSS 8년 전 조회 2,093
CSS 8년 전 조회 1,680
CSS 8년 전 조회 1,801
CSS 8년 전 조회 1,887
CSS 8년 전 조회 1,902
CSS 8년 전 조회 1,705
CSS 8년 전 조회 4,404
CSS 8년 전 조회 2,322
CSS 8년 전 조회 2,719
CSS 8년 전 조회 2,252
CSS 8년 전 조회 2,186
CSS 8년 전 조회 2,061
CSS 8년 전 조회 2,333
CSS 8년 전 조회 2,094
CSS 8년 전 조회 2,235
CSS 8년 전 조회 2,625
CSS 8년 전 조회 1,950
CSS 8년 전 조회 2,554
CSS 8년 전 조회 1,981
CSS 8년 전 조회 1,768
CSS 8년 전 조회 1,458
CSS 8년 전 조회 1,784
CSS 8년 전 조회 2,556