HTML_CSS::setSameStyle
Synopsis
void|PEAR_Error HTML_CSS::setSameStyle (
string $new
, string $old
)
Описание
Set or change the properties of a new basic selector (not group) to the values of an existing selector
Parameter
-
string
$new
-
New selector that should share the same definitions
-
string
$old
-
Selector that is already defined
Throws
throws HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_NO_ELEMENT
Since
since version 0.2.0 (2003-07-31)
Замечание
This function can not be called statically.
Пример
see HTML_CSS::setStyle() , if you want only to apply the same style as a basic selector.
see HTML_CSS::createGroup() , if you want to apply the same style to a list of selectors.