我已经和margin-bottom玩了一个小时了,我不能让灰条消失在我的屏幕底部。
这是相关的代码..。
<!-- Start WOWSlider.com BODY section --> <!-- add to the <body> of your page -->
<div id="wowslider-container1">
<div class="ws_images">
<ul>
我目前正在为学校做一个ASP.NET MVC网站的项目。当我创建一个新的项目时,引导文件被自动添加。所以我决定使用它,但我从来没有这样做过。
我注意到的第一件事是网站顶部的固定肚脐。我希望在它上面有一个标题/横幅,然后是导航栏。但我没能做到。在布局视图中有下面的代码:
<div class="movdb-header"></div> <!-- this is the header i want to display above navbar -->
<div class="navbar navbar-inverse navba
我有一个非常嵌套的<div>元素。如何在此元素中呈现一个将浮动在屏幕顶部(body或html)的新元素?
粘性位置相对于最近的元素(父元素),这不是一个答案。
如果不能用CSS完成,是否有任何JS库可以这样做?
<html>
<body>
<div>
<div>element should be sticky to the top of the page</div>
</div>
</body>
</html>