为什么在IE中它不会使我的视频居中?在所有其他浏览器中http://101river.com/record似乎没问题。
<div style="width: 320px; height: 600px; margin: 0 auto;">
<object id="container" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="340" height="540" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="align" value="middle" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><param name="FlashVars" value="contentId=4c5b364b86f31" /><param name="quality" value="high" /><param name="wmode" value="opaque" /><param name="src" value="http://videos2.videobloom.com/container.swf" /><param name="name" value="container" /><param name="flashvars" value="contentId=4c5b364b86f31" /><param name="allowfullscreen" value="true" /><embed id="container" type="application/x-shockwave-flash" width="340" height="540" src="http://videos2.videobloom.com/container.swf" name="container" wmode="opaque" quality="high" flashvars="contentId=4c5b364b86f31" allowfullscreen="true" allowscriptaccess="always" align="middle"></embed></object>
Click <a href="http://101river.com/wp-content/uploads/2010/08/calendar_48.png"><img class="alignnone size-full wp-image-210" title="calendar_48" src="http://101river.com/wp-content/uploads/2010/08/calendar_48.png" alt="" width="48" height="48" /></a> to schedule your Twounce.
</div>
答案 0 :(得分:2)
你的doctype之前有评论触发怪癖模式。删除注释,它应该使IE以标准模式呈现您的页面(遵守更多CSS规则)并正确执行(这样您就不必诉诸于文本对齐黑客)。