답변 4개 / 댓글 4개
채택된 답변
+20 포인트
<div style="position:absolute;width:200px;height:100px;top:150px;background-color:blue"></div>
이렇게 테스트했더니 IE11에서 잘됩니다.
답변에 대한 댓글 3개
다음 처럼 자바스크립트를 사용하니 얼추 맞는 것 같습니다. 참조하시죠.
<div id="testBox" style="position:absolute;top:150px;width:200px;height:100px;background-color:blue"></div>
<script>
$(function() {
var agent = navigator.userAgent.toLowerCase();
if (agent.indexOf("msie") > -1 || agent.indexOf("trident") > -1) {
$("#testBox").css({
'position' : 'absolute',
'top' : '150px'
});
}
});
</script>
<div id="testBox" style="position:absolute;top:150px;width:200px;height:100px;background-color:blue"></div>
<script>
$(function() {
var agent = navigator.userAgent.toLowerCase();
if (agent.indexOf("msie") > -1 || agent.indexOf("trident") > -1) {
$("#testBox").css({
'position' : 'absolute',
'top' : '150px'
});
}
});
</script>
답변을 작성하려면 로그인이 필요합니다.
또 익스에서는 맞는데 크롬에서는 위치가 다르게나옵니다 ㅜㅠ