关键代码:
外部DIV使用: text-align:center;
内部DIV使用: margin-left:auto;margin-right:auto
例:
<div style="text-align: center">
<div style="margin-left: auto;margin-right: auto;">
<fieldset>
<legend>居中</legend>
</fieldset>
</div>
</div>