我想设想一个html菜单应用于sharepoint网站
解释有点复杂,所以有一个架构 Picture of the Menu wanted
你有一个css的例子来实现吗? html的结构是这样的:
ID MENU #zz12_TopNavigationMenu
UL (level 1) #zz13_RootAspMenu
LI .static
A
SPAN
SPAN .menu-item-text
LI .static.dynamic-children
A
SPAN
SPAN .menu-item-text
UL (Level 2) .dynamic
LI .dynamic dynamic-children
A
SPAN
SPAN .menu-item-text
UL (Level 3) .dynamic
LI .dynamic
A
SPAN
SPAN .menu-item-text
LI
A
SPAN
SPAN
LI
LI -
UL (Level 3)
LI
LI
LI
LI - Practical information
UL (Level 3)
LI
LI
LI
LI

谢谢
答案 0 :(得分:-1)
试试这段代码
<div class="tabs">
<div class="tab">
<input type="radio" id="tab-1" name="tab-group-1" checked>
<label for="tab-1">Tab One</label>
<div class="content">
stuff
</div>
</div>
<div class="tab">
<input type="radio" id="tab-2" name="tab-group-1">
<label for="tab-2">Tab Two</label>
<div class="content">`enter code here`
stuff
</div>
</div>
<div class="tab">
<input type="radio" id="tab-3" name="tab-group-1">
<label for="tab-3">Tab Three</label>
<div class="content">
stuff
</div>
</div>
</div>
的CSS
.tabs {
position: relative;
min-height: 200px; /* This part sucks */
clear: both;
margin: 25px 0;
}
.tab {
float: left;
}
.tab label {
background: #eee;
padding: 10px;
border: 1px solid #ccc;
margin-left: -1px;
position: relative;
left: 1px;
}
.tab [type=radio] {
display: none;
}
.content {
position: absolute;`enter code here`
top: 28px;
left: 0;
background: white;
right: 0;
bottom: 0;
padding: 20px;
border: 1px solid #ccc;
}
[type=radio]:checked ~ label {
background: white;
border-bottom: 1px solid white;
z-index: 2;
}
[type=radio]:checked ~ label ~ .content {
z-index: 1;
}