2014-04-11 2 views
3

두 개의 YouTube 동영상을 aspx 페이지에 포함하려고 시도하지만 첫 번째 iFrame이 렌더링 된 후에는 아무것도 표시하지 않습니다. 나는 asp.net에 비교적 익숙하다. - 이것이 단순한 질문이라면 사과한다 - 나는 그 문제가 무엇인지 알 수 없다.한 페이지에 여러 YouTube 동영상 포함

 <p class="indent"> 
     Watch a video showing how to email a report. 
    </p> 
    <p class="centerText"> 
     <iframe type="text/html" width="640" height="385" src="http://www.youtube.com/embed/l8QSqhcnhf8" allowfullscreen frameborder="0" /> 
    </p> 

    <br /> 
    <p class="indent"> 
     Watch a video showing how to create a web page. 
    </p> 
    <p class="centerText"> 
     <iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/35yKdLf5B3Y" allowfullscreen frameborder="0" /> 
    </p> 

답변

1

변경 <iframe></iframe> 대신 <iframe />

<p class="indent"> 
     Watch a video showing how to email a report. 
    </p> 
    <p class="centerText"> 
     <iframe type="text/html" width="640" height="385" src="http://www.youtube.com/embed/l8QSqhcnhf8" allowfullscreen frameborder="0" ></iframe> 
    </p> 

    <br /> 
    <p class="indent"> 
     Watch a video showing how to create a web page. 
    </p> 
    <p class="centerText"> 
     <iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/35yKdLf5B3Y" allowfullscreen frameborder="0" ></iframe> 
    </p> 
에 : 여기

코드입니다
관련 문제