standard.css

description

Applies the CSS style(s) to the element.

syntax

getX(ELEMENT_NAME).css(styleName, style)

What does getX() mean?

  • styleName :
  • style :

alternate(s)

  • getX(ELEMENT_NAME).css({"style name 1": "style 1", "style name 2": "style 2"})


example(s)


@
@newText("frame", "framed")
$    .css("border", "solid 1px black")
@,
@newText("sentence", "The last word of this sentence is ")
@    .after( getText("frame") )
@    .print()
  • Prints a text reading The last word of this sentence is framed, with the last word (framed) framed in a box with 1px black borders.