עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Div צף

Featured Replies

פורסם

אני מנסה לעשות ToolBar שיהיה תמיד התחילת הדף ולא יזוז גם אם אני גולל את הדף.

אני אם רושם:

<div id="top_toolbar" style="position:fixed;top:0;width:100%;">

ומוסיף לתחילת העמוד:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"[url]http://www.w3.org/TR/html4/loose.dtd">[/url]

זה עובד מצויין ב IE7 ו FF2 אבל ב IE6 הוא לא מתייחס :(

יש למישהו פתרון ?

(כמה שפחות קוד, ובלי JavaScript בכלל).

תודה.

פורסם

תנסה ככה:


<div id="top_toolbar" style="position:absolute;top:0px;width:100%;scroll:fixed;">

פורסם
  • מחבר

nope

פורסם

סליחה התבלבלתי עם משהו אחר... רשמת נכון

<div id="top_toolbar" style="position:fixed;top:0px;width:100%;">

אבל position:fixed לא נתמך בIE7.

אתה יכול לעשות את זה עם javascript

פורסם

למה לא לעבוד עם position:absolute; ?

פורסם

מכיוון שזה לא יגלל לו עם הדף.

פורסם

אהה...

בלי JS לא אפשרי.

פורסם
  • מחבר

זה אפשרי רק ב IE7 ו FF2 :(

אם אני לא אמצא פתרון אני אעשה בסוף ב JavaScript

פורסם

בJS אתה יכול להשתמש בonscroll בשביל לקבל אינדיקציה על תזוזה.

פורסם

נסה


top:expression(this.offsetParent.scrollTop);
position: relative;

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.