Commit 85ecc190 authored by 仇晓婷's avatar 仇晓婷

菜单样式优化

parent 9c1c529f
...@@ -9,32 +9,36 @@ ...@@ -9,32 +9,36 @@
<table class="t_table_box"> <table class="t_table_box">
<tr> <tr>
<td class="t_title"> <td class="t_title">
<a class="a_goIndex"> <div class="title">
<b class="title">首页</b> <Icon type="ios-home" />
</a> <b>首页</b>
</div>
</td> </td>
<td> <td>
<ul class="table_row_ul"> <ul class="table_row_ul">
<li> <li>
<a class="a_goIndex" @click="goIndex">首页一</a> <div @click="goIndex">首页一</div>
</li> </li>
<li> <li>
<a class="a_goIndex" @click="goIndexTwo">首页二</a> <div @click="goIndexTwo">首页二</div>
</li> </li>
</ul> </ul>
</td> </td>
</tr> </tr>
<tr v-for="(item,i) in filterSider" :key="i"> <tr v-for="(item,i) in filterSider" :key="i">
<td class="t_title"> <td class="t_title">
<b class="title">{{item.title}}</b> <div class="title">
<Icon :type="item.icon" />
<b>{{item.title}}</b>
</div>
</td> </td>
<td> <td>
<ul class="table_row_ul"> <ul class="table_row_ul">
<li v-for="(li,i) in item.children" :key="i"> <li v-for="(li,i) in item.children" :key="i" style="margin-bottom:-6px">
<a <div
@click="goPage(item,li)" @click="goPage(item,li)"
:class="{'active': li.id === isActive}" :class="{'active': li.id === isActive}"
>{{li.title}}</a> >{{li.title}}</div>
</li> </li>
</ul> </ul>
</td> </td>
...@@ -457,17 +461,19 @@ export default { ...@@ -457,17 +461,19 @@ export default {
} }
} }
.top_menu_box { .top_menu_box {
padding: 13px 20px 18px 0;
display: none; display: none;
border-radius: 5px; border-radius: 5px;
position: absolute; position: absolute;
z-index: 99999; z-index: 99999;
left: 56%; left: 20%;
top: 57%; top: 58%;
// min-width: 1084px; background-image: url("../../assets/images/home/menu.png");
min-width: 777px; background-size: 100% 100%;
min-height: 300px; min-width: 1030px;
box-shadow: 0px 5px 17px 5px rgba(0, 0, 0, 0.28); min-height: 320px;
background: #f5f6fa; // box-shadow: 0px 5px 17px 5px rgba(0, 0, 0, 0.28);
// background: #f5f6fa;
.t_table_box { .t_table_box {
border-collapse: collapse; border-collapse: collapse;
border-radius: 5px; border-radius: 5px;
...@@ -485,30 +491,33 @@ export default { ...@@ -485,30 +491,33 @@ export default {
} }
tr { tr {
td { td {
padding: 9px 10px 0px; padding: 8px 10px 3px 10px;
.table_row_ul { .table_row_ul {
list-style: none; list-style: none;
border-bottom: 1px solid #e0e0e0; border-bottom: 1px solid #172c5d;
text-align: left; text-align: left;
li { li {
list-style: none; list-style: none;
display: inline-block; display: inline-block;
a { min-width: 140px;
div {
float: left; float: left;
padding: 0px 10px; padding: 0px 10px;
line-height: 30px;
margin: 0px 6px; // line-height: 20px;
// margin: 0px 6px;
border-radius: 4px; border-radius: 4px;
} }
a:hover { div:hover {
background: #2680eb; background: #2680eb;
color: white; color: white;
} }
a:visited { div:visited {
background: #2680eb; background: #2680eb;
color: white; color: white;
} }
a.active { div.active {
background: #2680eb; background: #2680eb;
color: white; color: white;
} }
...@@ -518,12 +527,14 @@ export default { ...@@ -518,12 +527,14 @@ export default {
} }
.t_title { .t_title {
min-width: 150px; min-width: 150px;
text-align: left;
background: #515a6e; background: #515a6e;
.a_goIndex { padding-left: 15px;
color: #fff; .ivu-icon {
font-size: 14px;
} }
.title { .title {
padding: 5px 10px; margin-top: -10px;
} }
} }
} }
...@@ -531,15 +542,15 @@ export default { ...@@ -531,15 +542,15 @@ export default {
} }
.menu:hover .home { .menu:hover .home {
margin-top: 10px; margin-top: 10px;
height: 60px; height: 50px;
width: 60px; width: 50px;
z-index: 88888; z-index: 88888;
} }
.menu:hover .home .top_menu_box { .menu:hover .home .top_menu_box {
display: block; display: block;
} }
.menu:hover .home i { .menu:hover .home i {
font-size: 33px; font-size: 25px;
margin: 13px 0 0; margin: 13px 0 0;
} }
.ivu-breadcrumb { .ivu-breadcrumb {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment