Prototype E.prototype.oname = "origin name"; // hoisting function E() { //E.prototype.oname = "origin name"; this.name = "class E"; this.getName = function () { console.log(this.name); //return this.name; }; this.setName = function (name) { this.name = name; }; /* this.getOriginName = function () { console.log(E.prototype.oname); //return this.name; }; this.setOriginName = function (oname){ E.pr..
스타일 계층화 브라우저가 엘리먼트를 화면에 나타낼 때 속성의 값을 참조하는 순서 1. 인라인 스타일 - 글로벌 style 속성을 사용하여 엘리먼트에 정의된 스타일2. 내장 스타일 - style 엘리먼트 안에 정의된 스타일3. 외부 스타일 - link 엘리먼트로 사용하여 불러오는 .css 파일에 정의된 스타일4. 사용자 스타일 - 사용자에 의해 정의된 스타일, 브라우저마다 다르게 설정하는 Custom CSS5. 브라우저 스타일 - 각 브라우저가 가지고 있는 기본 스타일 !important 마킹으로 참조 우선순위를 바꿀 수 있음 a { color : red !important; } 동일한 우선 순위 사이에서 순서 결정하기 하나의 엘리먼트에 동일한 레벨에서 적용된 두 개의 스타일이 있을 때,브라우저는 세 가지..