सीएसएस पृष्ठभूमि अनुलग्नक
सीएसएस पृष्ठभूमि-अनुलग्नक
संपत्ति निर्दिष्ट करती है कि background-attachment
क्या पृष्ठभूमि छवि को स्क्रॉल करना चाहिए या ठीक किया जाना चाहिए (शेष पृष्ठ के साथ स्क्रॉल नहीं किया जाएगा):
उदाहरण
निर्दिष्ट करें कि पृष्ठभूमि छवि को ठीक किया जाना चाहिए:
body
{
background-image: url("img_tree.png");
background-repeat: no-repeat;
background-position: right top;
background-attachment: fixed;
}
उदाहरण
निर्दिष्ट करें कि पृष्ठभूमि छवि को शेष पृष्ठ के साथ स्क्रॉल करना चाहिए:
body
{
background-image: url("img_tree.png");
background-repeat: no-repeat;
background-position: right top;
background-attachment: scroll;
}