Home Cooker Classes Others Rice CookerGX
Classes  >  document  >  PushCss(string)
document class : PushCss(string) method

Description

Add the style element that has the specified CSS code.

Syntax

documentInstance.PushCss(string cssCode)

Arguments

ClassNameDescription
stringcssCodeCSS code.

Return value

ClassDescription
elementThe style element that was added.

Sample code

document d = new document();

string cssCode = "body {background-color:blue;}";

element styleElement =d.PushCss(cssCode);

Notes

Additional position is the last of the head element.

Links for reference

None

Copyright © Rice All rights reserved.