problem to set div's display property to be 'block'

来源:互联网 发布:java io 编辑:程序博客网 时间:2024/06/05 14:13

1. set a div's display property to be 'block'

2. add an displaying dom element inside the div(display:block),  the dom element's position property is 'absolute'

3. ng-repeat the div(display:block)


it will only show only one displaying dom element inside a div(display:block), because all divs(display:block) are overlapped.

we can set the div's display property to be 'inline-block', then it will show all divs.

0 0
原创粉丝点击