웹페이지 버튼에 이미지 넣기
·
카테고리 없음
HTML에서 이미지 버튼을 수동으로 삽입하는 방법을 알아보겠습니다. CSS의 background-image 속성을 활용하여 버튼에 이미지를 추가할 수 있습니다. 예제 코드 HTML1input type="button" value="Add a new row" class="button-add" />cs CSS1234567891011input.button-add { background-image: url(/images/buttons/add.png); /* 16px x 16px */ background-color: transparent; /* make the button transparent */ background-repeat: no-repeat; /* make the background im..