我必須使用兩個iframe,一個用於IE8,另一個用於其他瀏覽器。我看到angularjs範圍變量(myUrl)正在爲後面的iframe評估,但不是第一個。AngularJS範圍變量在IE的條件註釋中沒有得到評估
<div id="frameContainer" class="modal-body ios-scroll">
<!--[if IE 8]><iframe ng-src="{{myUrl}}?domain=http://localhost:9001/" class="signInIframe" frameborder="0" marginheight="0" marginwidth="0" height="620" width="600"></iframe> <![endif]-->
<!--[if (gt IE 8)|!(IE)]><!--> <iframe ng-src="{{myUrl}}?domain=http://localhost:9001/" class="signInIframe" frameborder="0" marginheight="0" marginwidth="0" height="100%" width="100%"></iframe><!--<![endif]-->
</div>
請試試,謝謝! – Chandra