cuốn sách gpt4 ai đã làm

html - 如何停止标题中的菜单(顶部)

In lại Tác giả: Walker 123 更新时间:2023-11-28 13:23:13 28 4
mua khóa gpt4 Nike

http://jsfiddle.net/GuXQZ/3/ <-(我的html+css代码)

当向下滚动主菜单停在底部标题时,如何使菜单停在底部标题。之前回答...

 thân hình{
background: #83DF13;
Họ phông chữ: Arial;
lề: tự động;
}

#index{
background: #BCAEA4;
height: 35px;
padding: 0px 25px;
vị trí: cố định;
đỉnh: 0;
chiều rộng: 100%;
}

/*Header Option*/
#header{
nền: #fff;
chiều rộng: tự động;
margin: 45px 10px 10px 10px;
padding: 10px 10px;
chiều cao: 250px;
border-radius:10px;
-moz-border-radius:10px; /* Old Firefox */
}

#Link{
nền: #fff;
chiều rộng: tự động;
height: 45px;
lề: 10px;
phần đệm: 10px;
border-radius:0px 0px 10px 10px;
-moz-border-radius:0px 0px 10px 10px; /* Old Firefox */
}

câu trả lời hay nhất

你必须为此使用 js。

但是你可以只从 css 这样做:

http://jsfiddle.net/sachin4dotnet/GuXQZ/8/

添加CSS:

.index0{
vị trí: tương đối;
}

/*Header Option*/
#header{
z-index: 2;
}

在 html 中:



tiêu đề


slideshow lates Content







asdf


asdf


asdf


asdf


asdf


asdf


asdf


asdf



但是为了获得好的效果,你必须像上面 Karol 的例子一样使用 js 来改变类

关于html - 如何停止标题中的菜单(顶部),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14452794/

28 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress