יום שני, 13 באפריל 2009

9.3 קווי מתאר (outline)

קווי מתאר (outline) הם קווים המקיפים את האובייקט, מחוץ לקוי הגבול שלו, על מנת להבליט את האובייקט.
באמצעות המאפיינים של קווי המתאר, ניתן לקבוע את מיקומם של קווי המתאר מסביב לאובייקט וכן את העובי, הסגנון והצבע של קווי המתאר.
לתשומת לבכם: קווי מתאר אינם חייבים להיות מלבניים והם אינם "גוזלים" מקום במרחב האובייקט.

<head>
<style type="text/css">
p.one
{
border: red solid thin;
outline-style: solid;
outline-width: thick
}
p.two
{
border: red solid thin;
outline-style: solid;
outline-width: 2px
}
</style>
</head>

<body>

<p class="one">דוגמא ראשונה-מתאר רחב</p>
<p class="two">דוגמא שניה-מתאר דק</p>

</body>
 
התוצאה תראה בדפדפן כך:


הטבלה הבאה תציג את המאפיינים העיקריים ואת תמיכת הדפדפנים בכל מאפיין (IE=אקספלורר, F=פיירפוקס, N=נטסקייפ). המספרים בעמודות הדפדפן, מציינים את הגירסה הראשונה התומכת של הדפדפן

Property

Description

Values

דפדפן

IE

F

N

outline

A shorthand property for setting all the outline properties in one declaration

outline-color
outline-style
outline-width

-

1.5

-

outline-color

Sets the color of the outline around an element

color
invert

-

1.5

-

outline-style

Sets the style of the outline around an element

none
dotted
dashed
solid
double
groove
ridge
inset
outset

-

1.5

-

outline-width

Sets the width of the outline around an element

thin
medium
thick
length

-

1.5

-


 הקודם  הבא  

אין תגובות:

הוסף רשומת תגובה