在Microsoft Outlook中居中 [英] Center div in Microsoft Outlook

查看:2656
本文介绍了在Microsoft Outlook中居中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用< div style =width:742px; margin:0px auto;> 将容器放在中心 div



在浏览器中它可以正常工作,但是当我在Microsoft Outlook中打开它时,它不在中心。



我还在 margin 上使用!important ,因为我认为它优先于CSS。 / p>

如何在浏览器和电子邮件中将 div 对中?

解决方案

 < div align =center> 

您的代码

< / div>

仅适用于Outlook


I used <div style="width: 742px; margin: 0px auto; "> to center the container div.

In the browser it works, but when I open it in Microsoft Outlook it's not in the center.

I also used !important on the margin because I thought it took precedence over the CSS.

How do I center a div in the browser and email?

解决方案

<div align="center">

your code 

</div>

Only for Outlook

这篇关于在Microsoft Outlook中居中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆