yii\helpers\BaseHtml::removeCssStyle PHP Méthode

removeCssStyle() public static méthode

For example, php Html::removeCssStyle($options, ['width', 'height']);
See also: addCssStyle()
public static removeCssStyle ( array &$options, string | array $properties )
$options array the HTML options to be modified.
$properties string | array the CSS properties to be removed. You may use a string if you are removing a single property.
    public static function removeCssStyle(&$options, $properties)
    {
        if (!empty($options['style'])) {
            $style = is_array($options['style']) ? $options['style'] : static::cssStyleToArray($options['style']);
            foreach ((array) $properties as $property) {
                unset($style[$property]);
            }
            $options['style'] = static::cssStyleFromArray($style);
        }
    }