「Broken/縦ドロップダウンメニュー」の版間の差分

提供:大乱闘スマッシュブラザーズWiki
(ページの作成:「<includeonly><style type="text/css"> <!-- #container { overflow: hidden; width: 500px; margin: 0 auto; } #gnav { float: left; width: 100px; height: 125px; } #gnav...」)
 
(23版)
 
(同じ利用者による、間の22版が非表示)
1行目: 1行目:
<includeonly><style type="text/css">
<includeonly><style type="text/css">
<!--  
<!--  
 
ul.pulldown_menu_2 ul {
#container {
display: none; /* 通常は表示しない */
overflow: hidden;
width: 500px;
margin: 0 auto;
}
}
#gnav {
ul.pulldown_menu_2 li:hover > ul {
float: left;
display: block; /* マウスが乗ったら表示する */
width: 100px;
height: 125px;
}
}
#gnav ul li {
ul.pulldown_menu_3 {
width: 100px;
padding-left:0.5em; /* 内部の余白 */
height: 25px;
text-align: center;
background: #c8d6e8;
}
}
#gnav ul li a {
ul.pulldown_menu_3 li {
display: block;
position: relative; /* 2段目の位置を指定するため */
width: 100px;
/* width: 10em; /* リスト項目の幅 */*/
height: 25px;
color: #f0f0f0;
font-size: 100%;
line-height: 1.6;
background: #b0c4de;
}
}
#gnav ul li a:hover {
ul.pulldown_menu_3 ul {
color: #777777;
position: absolute; /* 2段目の位置を絶対位置で指定 */
background: none;
left: 8.5em; /* 1段目の幅の分を右へ */
top: 0px; /* 1段目の上下方向は同じ位置 */
list-style: none; /* 2段目の先頭記号を消す */
padding-left: 0px; /* 2段目の左位置を1段目に揃える */
margin:0;
}
}
#gnav ul li ul {
ul.pulldown_menu_3 a {
display: none;
display: block; /* ブロックレベルに */
text-decoration: none; /* 下線を消す */
outline: none; /* 選択時の点線枠線を消す */
}
}
#gnav ul li:hover ul {
ul.pulldown_menu_3 ul a {/* 2段目 */
display: block;
list-style: none; /* 先頭記号を消す */
position: relative;
width: 12em; /* リスト項目の幅 */
top: -25px;
border: 1px #AAA solid; /* 枠線 */
left: 100px;
padding-left:0.5em; /* 内部の余白 */
width: 100px;
background:#FFF;
height: 25px;
}
}
.content {
ul.pulldown_menu_3 a:hover {/* マウスカーソルが乗っている状態 */
float: left;
background:#CCCCFF;
width: 400px;
height: 125px;
background: #cccccc;
}
.content p {
padding: 5px;
}
}
-->   
-->   
</style></includeonly>
</style></includeonly>

2014年6月14日 (土) 22:00時点における最新版