[英]Make <li> not scrollable in <ul>
也許嘗試將“您有3條提醒”設置為標頭,其余設置為主要內容?
像這樣的東西:HTML
<article>
<header>You Have 3 Reminders</header>
<p id="ArticleTitle">Task Satu by admin to admin</p>
<p id="Content">You have <b>Two Days Before</b> Reminder.</p>
</article>
的CSS
#header {
height:50px;
width:100%;
position:fixed;
top:0;
left:0;
}
.ArticleTitle{
top:10;
}
您可以嘗試position: fixed
獲得結果。
另一個選擇是使用position: sticky
盡管並非在所有瀏覽器中都可用。 這是定位的參考。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.