목록2017/08 (3)
Knowledge Map
MDN에서 그냥 긁어옴 The object-fit CSS property specifies how a replaced element, such as an or , should be resized to fit its container./* Keyword values */ object-fit: fill; object-fit: contain; object-fit: cover; object-fit: none; object-fit: scale-down; /* Global values */ object-fit: inherit; object-fit: initial; object-fit: unset;Depending on the value you specify for object-fit, the element may ..
12345678910111213ol { width: 400px; /*width: 800px;*/ display: table; table-layout: fixed; /* the magic dust that ensure equal width */ background: #ccc}ol > li { display: table-cell; border: 1px dashed red; text-align: center}Colored by Color Scriptercs 이렇게 하면 갯수에 따라 자동으로 사이즈 맞춰준다.
참고 출처 : http://multifrontgarden.tistory.com/133 디스패치 ( Dispatch ) dispatch는 쉽게 말하자면 메서드를 호출하는 것이며 static dispatch와 dynamic dispatch가 있다.static은 구현 클래스를 이용해서 컴파일 타임에 어떤 메서드가 호출될지 정해져 있는 것이다.dynamic은 인터페이스를 이용해서 호출되는 메서드가 동적으로 정해지는 것을 말한다. 12345678910111213141516// StaticDispatch라는 구현 클래스의 method이므로 정적으로 정해진다.class StaticDispatch { method(){return 'hello staticDispatch';}}let staticDispatch = new ..