m_segment.css 2.72 KB
<<<<<<< HEAD
.bg-img{background:url(../../images/icon/icon.png)no-repeat;background-size:150px}.m-segment{overflow:hidden;vertical-align:middle}.m-segment li{width:50%;line-height:30px;text-align:center;float:left;background-color:#FFF;color:#23AC38;border:1px solid #23AC38;border-right:none;box-sizing:border-box}.m-segment li:last-child{border-right:1px solid #23AC38}.m-segment li .segment-text{display:block;color:#23AC38;line-height:30px;font-size:14px}.m-segment .on{color:#FFF;background-color:#23AC38}.m-segment .on .segment-text{color:#FFF}.m-segment.tab-col-2 li{width:50%!important}.m-segment.tab-col-3 li{width:33.3%!important}.m-segment.tab-col-4 li{padding-right:0;width:25%!important}.m-segment.tab-col-5 li{padding-right:0;width:20%!important}
=======
/***************************************************
* feature  :  分隔栏;
* update   :  2015/02/03;
* use      :  .m-segment;
* extend   :  .segment-*;
* example  :  <ul class="m-segment"><li class="on"><a href="#" class="text">商品详情</a></li><li><a href="#" class="text">商品评论</a></li></ul>;
* desc     :  ;
* feedback :  此处填入 issue, 并请附带以下信息[os_version, browser_version, page_path, issue_description]
*          -  demo => [windows 7, IE 8, http://diligrp.com/icon.html, 在不定height下未能垂直居中];
****************************************************/
/***************************************************
* feature  :  变量配置;
* update   :  2015/02/05;
* use      :  ;
* extend   :  ;
* example  :  ;
* desc     :  ;
* feedback :  此处填入 issue, 并请附带以下信息[os_version, browser_version, page_path, issue_description]
*          -  demo => [windows 7, IE 8, http://diligrp.com/icon.html, 在不定height下未能垂直居中];
****************************************************/
.bg-img {
  background: url('../../images/icon/icon.png') no-repeat;
  background-size: 150px;
}
.m-segment {
  overflow: hidden;
  vertical-align: middle;
}
.m-segment li {
  width: 50%;
  line-height: 30px;
  text-align: center;
  float: left;
  background-color: #FFF;
  color: #23AC38;
  border: 1px solid #23AC38;
  border-right: none;
  box-sizing: border-box;
}
.m-segment li:last-child {
  border-right: 1px solid #23AC38;
}
.m-segment li .segment-text {
  display: block;
  color: #23AC38;
  line-height: 30px;
  font-size: 14px;
}
.m-segment .on {
  color: #FFF;
  background-color: #23AC38;
}
.m-segment .on .segment-text {
  color: #FFF;
}
.m-segment.tab-col-2 li {
  width: 50% !important;
}
.m-segment.tab-col-3 li {
  width: 33.3% !important;
}
.m-segment.tab-col-4 li {
  padding-right: 0;
  width: 25% !important;
}
.m-segment.tab-col-5 li {
  padding-right: 0;
  width: 20% !important;
}
>>>>>>> b51924697e7ffdccee5d9d41bd2be4b3b02828fa