Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 21962 программиста и 1557 роботов. Сейчас ищет 1831 программист ...

HTML_CSS::setSameStyle

Вернуться к: Grouping selectors

HTML_CSS::setSameStyle

HTML_CSS::setSameStyle() – Apply same styles on two selectors

Synopsis

require_once 'HTML/CSS.php';

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)

Note

This function can not be called statically.

Example

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.



Вернуться к: Grouping selectors

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware