HTML 썸네일형 리스트형 모달창에서 execCommand('copy') 실행 안 될 때 var text = document.getElementById('input-copy'); text.select(); text.focus(); document.execCommand('copy'); 더보기 모달창에서 execCommand('copy') 실행 안 될 때 var text = document.getElementById('input-copy'); text.select(); text.focus(); document.execCommand('copy'); 더보기 [HTML] <pre></pre> 태그 란? 태그는 HTML에 작성한 내용을 그대로 표현합니다. 즉, 요소 내 공백문자를 그대로 유지합니다. * 사용 ================= Hello World! ================= * 미사용 ================= Hello World! ================= ※ 사용여부에서 알 수 있듯이 공백 문자 및 개행 문자를 모두 그대로 사용하는 것을 확인할 수 있습니다. 더보기 이전 1 다음