background-image | |
Syntax: background-image: uri | none |
<style type="text/css"> .demo1 { background-image: url("../images/logo.gif"); width: 200px; border: 1px solid; height: 50px; } </style> <div class="demo1"></div> |
|
<style type="text/css"> .demo2 { background-image: url("../images/logo.gif"); background-repeat: no-repeat; width: 200px; border: 1px solid; height: 50px; } </style> <div class="demo2"></div> |
|
<style type="text/css"> .demo3 { background-image: none; width: 200px; border: 1px solid; height: 50px; } </style> <div class="demo3"></div> |