Bütünleşik Biçembentler, 2. Aşama | ||
---|---|---|
Önceki | Yukarı | Sonraki |
cursor
niteliğicursor | NİTELİK |
Değer: | [ [uri ,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize | text | wait | help ] ] | inherit |
İlk değer: | auto |
Uygulama yeri: | tüm elemanlar |
Kalıtsallık: | yes |
Yüzdelik değerler: | Elverişsiz |
Ortam: | visual, interactive |
This property specifies the type of cursor to be displayed for the pointing device. Values have the following meanings:
p { cursor : url("mything.cur"), url("second.csr"), text; }
In addition to being able to assign pre-defined color values to text, backgrounds, etc., CSS2 allows authors to specify colors in a manner that integrates them into the user's graphic environment. Style rules that take into account user preferences thus offer the following advantages:
They produce pages that fit the user's defined look and feel.
They produce pages that may be more accessible as the current user settings may be related to a disability.
The set of values defined for system colors is intended to be exhaustive. For systems that do not have a corresponding value, the specified value should be mapped to the nearest system attribute, or to a default color.
The following lists additional values for color-related CSS
attributes and their general meaning. Any color property (e.g.,
color
or background-color
) can take
one of the following names. Although these are case-insensitive, it
is recommended that the mixed capitalization shown below be used,
to make the names more legible.
p { color: WindowText; background-color: Window }
As for colors, authors may specify fonts in a way that makes use
of a user's system resources. Please consult the font
property for details.
outline
propertyAt times, style sheet authors may want to create outlines around visual objects such as buttons, active form fields, image maps, etc., to make them stand out. CSS2 outlines differ from borders in the following ways:
Outlines do not take up space.
Outlines may be non-rectangular.
The outline properties control the style of these dynamic outlines.
outline | NİTELİK |
Değer: | [ outline-color || outline-style || outline-width ] | inherit |
İlk değer: | see individual properties |
Uygulama yeri: | tüm elemanlar |
Kalıtsallık: | no |
Yüzdelik değerler: | Elverişsiz |
Ortam: | visual, interactive |
outline-width | NİTELİK |
Değer: | kenar-çizgisi-genişliği | inherit |
İlk değer: | medium |
Uygulama yeri: | tüm elemanlar |
Kalıtsallık: | no |
Yüzdelik değerler: | Elverişsiz |
Ortam: | visual, interactive |
outline-style | NİTELİK |
Değer: | kenar-çizgisi-biçemi | inherit |
İlk değer: | none |
Uygulama yeri: | tüm elemanlar |
Kalıtsallık: | no |
Yüzdelik değerler: | Elverişsiz |
Ortam: | visual, interactive |
outline-color | NİTELİK |
Değer: | color | invert | inherit |
İlk değer: | invert |
Uygulama yeri: | tüm elemanlar |
Kalıtsallık: | no |
Yüzdelik değerler: | Elverişsiz |
Ortam: | visual, interactive |
The outline created with the outline properties is drawn "over" a box, i.e., the outline is always on top, and doesn't influence the position or size of the box, or of any other boxes. Therefore, displaying or suppressing outlines does not cause reflow.
The outline is drawn starting just outside the border edge.
Outlines may be non-rectangular. For example, if the element is broken across several lines, the outline is the minimum outline that encloses all the element's boxes. In contrast to borders, the outline is not open at the line box's end or start, but is always fully connected.
The outline-width
property
accepts the same values asborder-width
.
The outline-style
property
accepts the same values as border-style
, except that
'hidden' is not a legal outline style.
The outline-color
accepts all
colors, as well as the keyword invert
. invert
is expected to
perform a color inversion on the pixels on the screen. This is a
common trick to ensure the focus border is visible, regardless of
color background.
The outline
property is a shorthand property, and sets all three of outline-style
, outline-width
, and outline-color
.
This specification does not define how multiple overlapping outlines are drawn, or how outlines are drawn for boxes that are partially obscured behind other elements.
BUTTON { outline-width : thick }
Scripts may be used to dynamically change the width of the outline, without provoking reflow.
Graphical user interfaces may use outlines around elements to tell the user which element on the page has the focus. These outlines are in addition to any borders, and switching outlines on and off should not cause the document to reflow. The focus is the subject of user interaction in a document (e.g., for entering text, selecting a button, etc.). User agents supporting the interactive media group must keep track of where the focus lies and must also represent the focus. This may be done by using dynamic outlines in conjunction with the :focus pseudo-class.
:focus { outline: thick solid black } :active { outline: thick solid red }
The CSS working group considers that the magnification of a document or portions of a document should not be specified through style sheets. User agents may support such magnification in different ways (e.g., larger images, louder sounds, etc.)
When magnifying a page, UAs should preserve the relationships between positioned elements. For example, a comic strip may be composed of images with overlaid text elements. When magnifying this page, a user agent should keep the text within the comic strip balloon.
Önceki | Yukarı | Sonraki |
Tablolar | Bir Linux Kitaplığı Sayfası | İşitsel Biçembentler |