[JS] 버튼누르면 헥사코드색상으로 변경 하기
간단한 js 예제 function myText(x) { var x = document.getElementById("color").value; //console.log(x); document.getElementById('textColor').style.color =x; } function myBackground(x) { var x = document.getElementById('color1').value; console.log(x); document.getElementById('bgColor').style.backgroundColor= x; } (3) Select Text Color : Select Background Color : 헥사코드를 누를 시 색상을 그거에 맞게 변경 할수 있다
카테고리 없음
2022. 6. 15. 19:02