?
快捷搜索:  as  test  1111  test aNd 8=8  test++aNd+8=8  as++aNd+8=8  as aNd 8=8

u樂唯一注冊登錄官網:當鼠標按順序懸停在菜單上時,可在同一位置顯示不同的頁面完

?

當鼠標按順序懸停在菜單上時,可在同一位置顯示不合的頁面

作者:Stu Nicholls

翻譯:forestgan

信息

這是 CSSplay的站長根據其近來創作的dropdown and flyout menus而改編而成的,當鼠標按順序懸停在菜單上時,可在同一位置顯示不合的頁面,可在Opera, IE5.5, IE6, IE7 beta,Safari 1.3.2 & Firefox.中精確顯示和事情,不兼容Mac IE5。

鼠標懸停在菜單和頁面上時顯示翰墨與圖片以及鏈接,滾動條要加在每個頁上。

樣式

對付非IE瀏覽器來說是對照簡單的,只用一個樣式表。

/* common styling */

/* set up the overall width of the menu div, the font and the margins with a relative position*/

.menu {

font-family: verdana, arial, sans-serif;

width:750px;

margin:0;

position:relative;

}

/* remove the bullets and set the margin and padding to zero for the unordered list */

.menu ul {

padding:0;

margin:0;

list-style-type: none;

border:0;

}

/* float the list so that the items are in a line */

.menu ul li {

float:left;

}

/* style the links to be 249px wide by 30px high u樂唯一注冊登錄官網with a top and right border 1px solid white. Set the background color and the font size. */

.menu ul li a, .menu ul li a:visited {

display:block;

text-align:center;

text-decoration:none;

width:249px;

height:30px;

color:#000;

border:1px solid #fff;

border-width:1px 1px 0 0;

background:#c9c9a7u樂唯一注冊登錄官網;

line-height:30px;

font-size:11px;

}

/* make the dropdown ul invisible */

.menu ul li ul {

display: none;

}

/* specific to non IE browsers */

/* set the background and foreground color of the main menu li on hover */

.menu ul li:hover a {

color:#fff;

background:#b3ab79;

}

/* make the sub menu ul visible and position it beneath the first list item */

.menu ul li:hover ul {

text-align:left;

display:block;

position:absolute;

top:30px;

left:0;

text-align:left;

}

/* make the sub menu ul li the full width witu樂唯一注冊登錄官網h padding and border. Add an auto scroll bar */

.menu ul li:hover ul li {

background:#eee;

color:#000;

padding:10px;

width:689px;

height:180px;

overflow:auto;

border:20px solid #b3ab79;

}

/*float the image left with padding and no border */

.menu ul li:hover ul li img {

float:left;

padding:10px 10px 10px 0;

border:0;

}

/* style the paragraph font height */

.menu ul li:hover ul li p {

font-size:0.9em;

}

/* style the background and foreground color of the submenu links */

.menu ul li:hover ul li a {

display:inlinu樂唯一注冊登錄官網e;

background:#eee;

color:#c00;

text-decoration:underline;

border:0;

}

/* style the background and forground colors of the links on hover */

.menu ul li:hover ul li a:hover {

text-decoration:none;

color:#000;

}

而IE還必要專門為它加一個,用前提判斷加入。

/* styling specific to Internet Elorer IE5.5 and IE6. Yet to see if IE7 handles li:hover */

/* Get rid of any default table style */

table {

border-collapse:collapse;

margin:0;

padding:0;

}

/* ignore the link used by 'other browsers' */

.menu ul li a.hide, .menu ul li a:visited.hide {

display:none;

}

/* set the background and foreground color of the main menu link on hover */

.menu ul li a:hover {

color:#fff;

background:#b3ab79;

}

/* make the sub menu ul visible and position it beneath the first list item */

.menu ul li a:hover ul {

text-align:left;

display:block;

position:absolute;

top:31px;

left:0;

}

/* make the sub menu ul li the full width with padding and border. Add an auto scroll bar */

.menu ul li a:hover ul li {

background:#eee;

color:#000;

padding:10px;

width:746px;

height:240px;

overflow:auto;

border:20px solid #b3ab79;

w/idth:689px;

he/ight:180px;

}

/*float the image left with padding and no border */

.menu ul li a:hover li img {

float:left;

padding:10px 10px 10px 0;

border:0;

}

/* style the paragraph font height */

.menu ul li a:hover p {

font-size:0.7em;

f/ont-size:1em;

}

/* style the background and foreground color of the submenu links */

.menu ul li a:hover ul li a {

display:inline;

width:1px;

word-wrap:normal;

background:#eee;

color:#c00;

text-decoration:underline;

border:0;

}

/* style the background and forground colors of the links on hover */

.menu ul li a:hover ul li a:hover {

text-decoration:none;

color:#000;

}

xu樂唯一注冊登錄官網HTML

你會看到用前提判斷來給 IE添加表格,. 其他瀏覽器不會用到表格,而將正常應用無序列表。文檔類型聲明是必須要加的,反之不能正常事情。

運行代碼框

John ConstableJohn Constable

Although he showed an early talent for art and began painting his native Suffolk scenery before he left school, his great originality matured slowly.

He committed himself to a career as an artist only in 1799, when he joined the Royal Academy Schools and it was not until 1829 that he was grudgingly made a full Academician, elected b

免責聲明:以上內容源自網絡,版權歸原作者所有,如有侵犯您的原創版權請告知,我們將盡快刪除相關內容。

您可能還會對下面的文章感興趣:

河北十一选五开奖的 走地即时赔率 麻将作弊开挂软件 湖南幸运赛车 免费麻将游戏平台 3d预测10对10 天海翼 ipz997在线观看 老友内蒙麻将app下载 3d开奖试机号走势 麻生希在线电影 财富之都 冲田杏梨最好看的作品番号 华鑫配资 网络投资理财平台可靠吗 排列3杀号99% 西安小姐性信息 吉林11选5开奖结