CSS padding

上一页 下一页

示例中展现不同的padding属性值.

选择不同的值查看对应结果:

padding: 0;
padding: 10px;
padding: 25px;
padding: 50px;
padding: 1%;
padding: 5%;
padding: 10px 1px 15px 50px;
padding: 10px 1px;
See this blue div element with different padding values.
See this blue div element with different padding values.
See this blue div element with different padding values.
See this blue div element with different padding values.
See this blue div element with different padding values.
See this blue div element with different padding values.
See this blue div element with different padding values.
See this blue div element with different padding values.

要使用更多方法,请在编辑器中试一下: 亲自试一试 ❯