<br> 태그를 모바일에서는 적용이 안되게 할 수 있나요?
감사합니다.
|
답변 6개
채택된 답변
+20 포인트
4년 전
Copy
@media only screen and (max-width: 767px) {
br{ display:none !important; }
}
alexseo
4년 전
모든 개발자님,
답변 감사합니다.
전부 채택하고 싶네요.
4년 전
<body> 밑에 아래의 자바스크립트를 추가하세요.
Copy
<script>
if (("win16win32win64macmacintel").indexOf(navigator.platform.toLowerCase()) < 0) {
noBr = document.getElementsByTagName("br");
for (i in noBr) noBr[i].style.display = "none";
}
</script>
블랙캣77
4년 전
php 특정 태그 제거라는 키워드로 구글에 한번 검색해보세요.
자료가 많이 나오실겁니다.
css 미디어쿼리로 모바일사이즈지정하고
br 에 클래스주던지해서 display none 하면 ?
답변을 작성하려면 로그인이 필요합니다.