• <option id="kikm0"><source id="kikm0"></source></option>
  • 金沙娱东城官网

    Crafty.background()

    public void Crafty.background(String style)
    style

    Modify the background with a color or image

    This method is a shortcut for adding a background style to the stage element, i.e. Crafty.stage.elem.style.background = ...

    For example, if you want the background to be white, with an image in the center, you might use:

    Crafty.background('#FFFFFF url(landscape.png) no-repeat center center');

    金沙娱东城官网