IE中的ASP.NET CSS中心div [英] ASP.NET CSS center div in IE
本文介绍了IE中的ASP.NET CSS中心div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将此图像居中,它在Iphone上的Google Chrome和Safari上都能正常工作,但在Firefox和IE上,该图像一直位于左侧.
I am trying to center this image, it works fine on Google Chrome and Safari on the Iphone, but on Firefox and IE the image is all the way to the left.
<div style="text-align: -webkit-center; removed 50%">
<asp:Image ID="Image2" runat="server" ImageUrl="~/NewFolder1/scottselby.jpg" /> </div>
推荐答案
这总是可以的:
This is always work:
<div style="width: 100%; text-align: center;">
<asp:image id="Image2" runat="server" imageurl="~/NewFolder1/scottselby.jpg" xmlns:asp="#unknown" />
</div>
谢谢,
Imdadhusen
Thanks,
Imdadhusen
这篇关于IE中的ASP.NET CSS中心div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文