기존 CSS
이 있는데, 미디어 쿼리를 수행하고 화면 크기가 특정 크기로 조정되면 메시지 상자를 표시합니다. 메시지 상자가 5 초 후에 사라지 길 원합니다.AngularJS : 화면 크기 조정을위한 CSS 미디어 쿼리 사용
AngluarJs
에서 어떻게 할 수 있습니까?
CSS :
@media all and (max-width: 1024px), all and (max-height: 760px) {
div#bestview {
display: block;
position:fixed;
z-index: 9999; /* above everything else */
top:0;
left:0;
bottom:0;
right:0;
background-image: url(../img/transpBlack75.png);
}
}
HTML :
<div id="bestview">The selected browser size is not optimal for.....</div>
나는이 솔루션을 테스트합니다. –