2014-10-03 5 views
0

주변에 너무 많은 간격이있는 Google 차트의 iframe이 있습니다. 이 페이지를 내 페이지에 삽입하고 싶지만 주변 공간을 없애려면 잘라냅니다.스크롤 iframe에 콘텐츠의 위치를 ​​변경하는 방법은 무엇입니까?

작은 height 및속성으로 iframe을 설정하여이 작업을 수행하려고했으나 iframe에서 내용의 위치를 ​​조정하여 센터로 배치하는 방법을 찾지 못했습니다. 이 방법은 iframe의 내용을 변경하거나 더 나은 솔루션이 어떻게

<iframe width="550" height="170" seamless frameborder="0" scrolling="no" src="https://docs.google.com/spreadsheets/d/1r56MJc7DVUVSkQ-cYdonqdSGXh5x8nRum4dIGMN89j0/pubchart?oid=1407844401&amp;format=interactive" onload="window.frames['itunes'].scrollTo(250,250)">></iframe> 

: 여기

차트의 iframe이 무엇입니까?

감사

답변

0

당신은 사업부 또는 무언가에 iframe을 포장하고 iframe이 위치한다. 여기 코드 :

<div class="wrapper"> 
<iframe></iframe> 
</div> 

이는 CSS를

.wrapper{overflow:hidden;} 
.wrapper iframe{position:relative; left:-40px; top:-30px;} 
입니다
관련 문제