Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- srtpos()
- includes()
- php
- 노션
- SQL
- 특수문자 포함여부
- implode()
- 배열
- explode()
- 오류
- 1064
- getimagesize()
- strpos()
- MySQL
- Excel
- 이걸 그렇게 쓸 줄은 몰랐지
- 일부 문자열 포함여부
- 문자열 포함여부
- jQuery
- primary_key
- JavaScript
- error
- myshortcut
- 서버부하
- 중간에추가
- 지직거림
- ES6
- formula
- 정규식
- 동작안함
Archives
- Today
- Total
코딩짜는 일상
[iOS 오류] a태그, div type="button" 버튼 동작 안함 본문
반응형
현재 우리 회사는 웹으로 작업한 페이지를 앱을 통해 보여줌으로써
일부 서비스를 제공하고 있다. (특히 이벤트 페이지)
그중 룰렛 이벤트 페이지를 내가 만들어 제공했는데,
이상하게도 ios에서만 버튼이 동작하지 않는 오류가 있었다.
<div type="button" data-toggle="modal" data-target="#testModal" style="text-align: center; font-weight: bold; text-decoration: underline; color: blue;"> 테스트 모달 </div>
처음에는 div type="button"
이 안 먹히나보다~ 했다.
마침 디자인이 <a>
태그랑 비슷하겠다 a태그로 수정해 봤다.
<div style="text-align: center;">
<a data-toggle="modal" data-target="#testModal" style="font-weight: bold; text-decoration: underline; color: blue;"> 테스트 모달 </a>
</div>
결과는 여전히 무반응...
다른 모달 팝업 버튼은 다 먹히는데 왜 얘만 안될까 해서 봤더니
다른 버튼은 button으로 되어있길래 <button>
태그로 바꿨다.
디자인을 a태그랑 비슷하게 가져가야 해서
스타일에 라인과 백그라운드를 투명으로 해줬다.
** 최종 **
<div style="text-align: center; font-weight: bold;">
<button data-toggle="modal" data-target="#testModal" style="background-color: transparent; border-color: transparent; color: blue; text-decoration: underline; "> 테스트 모달 </button>
</div>
** 후기 **
여전히 왜 이런 이슈가 있었는지 모르겠다.
마침 ios 업데이트 한지 얼마 안 되었을 때여서 (22년 6월 2일)
막연하게 ios 업데이트 때문이 아닐까~ 추측할 뿐이다...ㅠ
반응형
'개발일기' 카테고리의 다른 글
IT는 클레임만 제대로 소화해도 반은 먹고 들어가지 않을까... (0) | 2022.03.25 |
---|---|
백엔드는 늘 깐깐하게 따져야 하는구나...! (0) | 2022.03.22 |