Use the CSSbackground-originproperty to set the content box value. With the content-box value, the background image starts at the top left corner of the content.
You can try running the following code to implement the content-box value:
Live Demo
padding-box value
Heading 2
This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text.
Heading 3
This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text.border-box value
Heading 2
This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text.
Heading 3
This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text.content-box value
Heading 2
This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text.
Heading 3
This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text.
The above is the detailed content of CSS content box value. For more information, please follow other related articles on the PHP Chinese website!