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

14.6 Visibility

כל אובייקט ב-BODY יכול להיות גלוי או מוסתר. המאפיין visibility מאפשר למתכנת להעלים מהעין דברים מסוימים שלא רוצים שהמשתמש יראה. 
ערכים אפשריים הם hidden, visible וכן collapse. הדפדפן שומר מקום עבורם אבל לא מציג אותם. התכונה שימושית מאוד כאשר עובדים עם DHTML: 

<style>
em{visibility:hidden;}
</style>
<em class="rst">Error on page - please correct it!</em>

Value

Description

visible

The element is visible

hidden

The element is invisible

collapse

When used in table elements, this value removes a row or column, but it does not affect the table layout. The space taken up by the row or column will be available for other content. If this value is used on other elements, it renders as "hidden"


 הקודם  הבא  

אין תגובות:

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