주소창에 도메인주소만 보이게 할려면
본문
안녕하십니까?
기존의 도메인주소를 고정하기 위해 아래와 같이 사용했습니다.
aaa.com 접속시 주소창은 변하지 않고 도메인주소/mall/shop으로 넘어가게 하기위해
<frameset rows='100%' border='0' >
<frame src='http://도메인주소/mall/shop'><noframes>
</noframes>
</frameset>
그런데 영카트 5로 수정하고 나서 위와 같이 사용하니 화면이 겹쳐 나오더군요.
DIV로 제작되어서 그런지......
프레임셋(frameset)이나 iframe 대신에 주소창에 도메인만 보이게(aaa.com)
하는 방법은 없는지요.
답변 3
<style>body{margin:0;padding:0;}
html{overflow:hidden;}
iframe{width:100%;height:100%;overflow-y:scroll;overflow-x:hidden;}
</style>
<title>홈페이지 타이틀명</title>
<iframe src="주소" marginwidth="0" marginheight="0" frameborder="0"></iframe>
데모 테스트 주소 : http://demo.boan.pw/index.php?iframe=http://sir.co.kr/
!-->프레임을 쓰면 화면이 겹쳐나옵니다.
답변을 작성하시기 전에 로그인 해주세요.