diff --git a/components/menu/demo/horizontal.md b/components/menu/demo/horizontal.md index 9ef8bf9484..11022bf478 100644 --- a/components/menu/demo/horizontal.md +++ b/components/menu/demo/horizontal.md @@ -30,12 +30,15 @@ var App = React.createClass({ 导航二 - 导航三(子菜单)}> + 导航 - 子菜单}> 选项1 选项2 选项3 选项4 + + 导航四 - 链接 + } }); diff --git a/style/components/menu.less b/style/components/menu.less index 0e0776f2d1..ad10a9e6bf 100644 --- a/style/components/menu.less +++ b/style/components/menu.less @@ -156,9 +156,23 @@ & > .@{menuPrefixCls}-item, & > .@{menuPrefixCls}-submenu > .@{menuPrefixCls}-submenu-title { - padding: 15px 20px; + padding: 0 20px; + line-height: 50px; position: relative; top: 1px; + > a { + display: block; + &:before, &:after { + position: absolute; + background-color: rgba(255,255,255,0.001); + width: 20px; + height: 50px; + content: ''; + } + &:before { + left: 0; + } + } } & > .@{menuPrefixCls}-submenu, & > .@{menuPrefixCls}-item {