未验证 提交 7d0c6a06 编写于 作者: O Owen M 提交者: GitHub

Update README.md

上级 a1015e2f
...@@ -522,12 +522,15 @@ The distance (in pixels) the mouse must be from an empty sortable while dragging ...@@ -522,12 +522,15 @@ The distance (in pixels) the mouse must be from an empty sortable while dragging
Demo: https://jsbin.com/becavoj/edit?js,output Demo: https://jsbin.com/becavoj/edit?js,output
An alternative to this option would be to set a padding on your list when it is empty. An alternative to this option would be to set a padding on your list when it is empty.
For example: For example:
`ul:empty { ```css
ul:empty {
padding-bottom: 20px; padding-bottom: 20px;
}` }
```
Warning: For :empty to work, it must have no node inside (even text one). Warning: For `:empty` to work, it must have no node inside (even text one).
Demo: Demo:
https://jsbin.com/yunakeg/edit?html,css,js,output https://jsbin.com/yunakeg/edit?html,css,js,output
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册