CSS unselect Decoration - Java org.w3c.dom.css

Java examples for org.w3c.dom.css:CSSStyleDeclaration

Description

CSS unselect Decoration

Demo Code


//package com.java2s;

import org.w3c.dom.css.CSSStyleDeclaration;

import org.w3c.dom.css.ElementCSSInlineStyle;

public class Main {
    public static void unselectDecoration(ElementCSSInlineStyle elemStyle) {
        CSSStyleDeclaration style = elemStyle.getStyle();
        style.removeProperty("color");
    }// ww w .j ava2s .co m
}

Related Tutorials