Create tabs with merge area

时间:2016-08-31 12:07:56

标签: angularjs cordova angular-material

How can I create Tabs with Angular-Material look like this picture below : (I don't know how to describe it in English so I call it is "merges tab" )

MyImage

1 个答案:

答案 0 :(得分:1)

这是对它的抨击 - CodePen。我认为可以改进。

enter image description here

标记

                                  

一些描述

                                                    标签一                                           表二                                           表三                                           表四                        

CSS

#myTabs {
  margin-top: -40px;
  z-index: 0;
}

#myTabs md-tab-item {
  border: 1px solid black;
}

#myTabs md-tabs-canvas, 
#myTabs md-pagination-wrapper {
  height: 100px
}

#myTabs .md-tab {
  line-height: 80px
}

#tabsDescription {
  height: 40px;
  z-index: 1;
  text-align: center;
}

#tabsDescription {
  margin-left: -20px;
  background: white;
  height: 40px;
  width: 4px;
  text-align: center;
}

#tabsDescription p {
  margin: 5px -60px;
  white-space: nowrap;
}