עבור לתוכן
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.

css התכונה: float, לא עובדת. אצלי בכל אופן

Featured Replies

פורסם

שלום,

הקוד הבא:

<head>
<title>test</title>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="en-us" />
<style type="text/css">
#first {width:1em; float:left; border:1px solid red;}
#second {width:10em; border:1px solid blue;}
</style>
</head>
<body>
<h1 id="first"> A</h1>
<h1 id="second">B</h1>
</body>

מציג את הדף הזה:test3_1.gif. האות B מוצבת מימין ל A כפי שהייתי מצפה אך מעט גבוה יותר מסיבה בלתי ברורה לי.

שינוי התערך בתכונה width לסלקטור #second ל 1em מביאה לכך ש B ירד מתחת ל A בדף מסיבה בלתי ברורה לי לחלוטין. אם #first קיבל foat:left מדוע האלמנט הבא מופיע מתחתיו ולא לצידו ? ומדוע אם מגדילים את רוחב האלמנט השני הוא כן מופיע לצידו ? ומדוע במקום גבוה יותר ?

תודה

[attachment deleted by admin]

ארכיון

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

דיונים חדשים

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.