fieldset legend 加text-align在IE下不居中解决

给legend加margin:0 auto;

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style type="text/css">
        legend{
            margin: 0 auto;
            text-align: center;
        }
    </style>
</head>
<body>
    <fieldset>
        <legend>居中</legend>
    </fieldset>
</body>
</html>

猜你喜欢

转载自blog.csdn.net/HTML5_styy/article/details/53283509
今日推荐