본문 바로가기
프로젝트/그림 앱 클론코딩

그림판 style 설정

by 두 그루 2023. 2. 5.

input(type="range") 설정하는 방법은 아래를 참고했다.

https://www.smashingmagazine.com/2021/12/create-custom-range-input-consistent-browsers/

 

Creating A Custom Range Input That Looks Consistent Across All Browsers — Smashing Magazine

Range inputs have notoriously been a pain to style. Each browser renders the input differently requiring you to use vendor prefixes in order to create a cohesive look and feel. In this article, we’ll take a look at the quirkiness of the HTML range input

www.smashingmagazine.com

 

모드(Draw/Fill)가 바뀔 때 icon을 달리해야 한다. i tag를 만들어 button에 append하는 방법은 알지만, remove하는 방법을 몰라 아래 문서를 참고했다.

https://www.w3schools.com/jsref/met_node_removechild.asp

 

HTML DOM Element removeChild Method

W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

www.w3schools.com

 

댓글