Copyright © tutorialspoint.com
background-image defines a pointer to an image resource which is to be placed in the background of an element.
All the HTML elements.
object.style.backgroundImage="Any value as defined above"; |
Following is the example which demonstrates how to set the background image for an element.
<table style="background-image:url(/images/pattern1.gif);"> <tr><td> This table has background image set. </td></tr> </table> |
To Become more comfortable - Do Online Practice
Copyright © tutorialspoint.com