Example
အကြောင်းအရာရဲ့ဘယ်ဘက်အပေါ်ထောင့်ကနေနောက်ခံပုံကိုစဖွင့်ပါ။
- #example1{
border: 10px dashed black;padding: 25px;background-img: url("paper.gif");background-repeat: on-repeat;background-origin: content-box;- }
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
Numbers followed by -webkit-, -moz-, or -o- specify the first version that worked with a prefix.
| Property | |||||
|---|---|---|---|---|---|
| background-orngin | 4.0 | 9.0 | 4.0 | 3.0 | 10.5 |
CSS Syntax
background-origin: padding-box|border-box|content-box|initial|inherit;
Property Values
| Value | Description | |
|---|---|---|
| padding-box | Default value. The background image starts from the upper left corner of the padding edge | |
| border-box | The background image starts from the upper left corner of the border | |
| content-box | The background image starts from the upper left corner of the content | |
| initial | Sets this property to its default value. | |
| inherit | Inherits this property from its parent element. | |
More Examples
Example
- #example1{
border: 10px dashed black;padding: 25px;background-img: url("mountain.jpg"), url(paper.gif);background-repeat: on-repeat;background-size: auto;- }
- #example2{
padding: 25px;background-img: url("paper.gif");background-repeat: on-repeat;background-origin: content-box, padding-box;- }
No comments:
Post a Comment