6 个答案:
答案 0 :(得分:9)
在css中:
.Container input{ /* You Can Name it what you want*/
margin-right:16px;
}
.Container input:last-child{
margin-right:0px;
/*so the last one dont push the div thas giving the space only between the inputs*/
}
将该css类提供给div:
答案 1 :(得分:3)
您可以按如下方式使用margin-right:
Button 1
Button 2
Button 3
答案 2 :(得分:0)
这可能是你的情景:
每个提交按钮的下一个边距为16px。
答案 3 :(得分:0)
这是一个JSX示例:使用右边距css标签
-`
Buy this
`
'
Buy that
`
答案 4 :(得分:0)
设置div,浮动按钮,然后在第一个按钮上添加边距
CSS:
div a {
float: left;
}
div .button_1 {
margin-right: 16px;
}
答案 5 :(得分:0)
您只需在输入标签上添加保证金即可。查看
input[type="submit"]{margin:0 16px;}
input[type="submit"]:last-child{margin-right:0;} /*Remove the margin from last input field*/