如何组合"margin:0 28px"和"margin-bottom:13px"?

Que*_*ark 1 css phpstorm

PhpStorm(我的IDE)说我的CSS

div.stepDot {
    width:10px;
    height:10px;
    border:1px solid gray;
    border-radius:50%;
    background-color:white;
    position:relative;
    bottom:6px;
    display:inline-block;
    margin:0 28px;
    margin-bottom: 13px;
}
Run Code Online (Sandbox Code Playgroud)

可以缩短保证金和保证金底线.它试图说什么?

Dáv*_*abó 8

速记的工作原理如下:

margin: top right bottom left;
Run Code Online (Sandbox Code Playgroud)

在你的代码中它将是:

margin: 0 28px 13px;
Run Code Online (Sandbox Code Playgroud)

如果您没有指定所有参数,则它们的工作方式如下:

margin: top right-left bottom;
margin: top-bottom right-left;
margin: top-right-bottom-left;
Run Code Online (Sandbox Code Playgroud)