CSS margin 居右示例
html共 23 行
<html>
<head>
<meta charset="utf-8">
<title>CSS margin居右示例</title>
<style>
.flex-box {
width: 750px;
border: 1px solid #ccc;
}
.item {
margin-left: auto;
width: 100px;
height: 50px;
background-color: #2196F3;
}
</style>
</head>
<body>
<div class="flex-box">
<div class="item">item1</div>
</div>
</body>
</html>