CSS menu pseudo element after not working in chrom

2019-08-06 12:51发布

I have created a pure CSS menu and it works great in all browsers except Chrome and Safari. The menu should display arrow on the right but it moves to bottom.

When I change white-space: nowrap; to white-space: normal; it works fine on all browsers except Chrome and Safari and when I set it to white-space: nowrap; it shows arrow to the bottom

Code: jsfiddle

标签: css
1条回答
太酷不给撩
2楼-- · 2019-08-06 13:19

Change :after to :before. It will still be floated right, but a new block context is not created by the <li> itself.

http://jsfiddle.net/ygtes/1/

查看更多
登录 后发表回答