Computer >> कंप्यूटर ट्यूटोरियल >  >> प्रोग्रामिंग >> CSS

CSS all प्रॉपर्टी


सभी प्रॉपर्टीज़ रीसेट करें

all प्रॉपर्टी का उपयोग सभी CSS प्रॉपर्टीज़ को रीसेट करने के लिए करें। इसे initial, inherit, या unset पर सेट करें।

उदाहरण

<!DOCTYPE html>
<html>
  <head>
    <style>
      html { color: blue; }
      #demo {
        background-color: yellow;
        color: red;
        all: inherit;
      }
    </style>
  </head>
  <body>
    <h2>CSS all property</h2>
    <div id="demo">This is demo text.</div>
  </body>
</html>

  1. - CSS के साथ सभी प्रॉपर्टीज़ रीसेट करें

    all प्रॉपर्टी का उपयोग सभी CSS प्रॉपर्टीज़ को एक साथ रीसेट करने के लिए किया जाता है। इसे initial, inherit, या unset पर सेट किया जा सकता है। उदाहरण <!DOCTYPE html> <html> <head> <style> html { color: blue; } #demo { background-col

  1. CSS में writing-mode प्रॉपर्टी CSS में writing-mode प्रॉपर्टी

    writing-mode प्रॉपर्टी का उपयोग यह सेट करने के लिए किया जाता है कि टेक्स्ट की लाइनें क्षैतिज या लंबवत रूप से रखी गई हैं। प्रॉपर्टी मान writing-mode: horizontal-tb | vertical-rl | vertical-lr; उदाहरण <!DOCTYPE html> <html> <head> <style> p { writing-mode: vertic

  1. CSS pointer-events प्रॉपर्टी CSS pointer-events प्रॉपर्टी

    pointer-events प्रॉपर्टी तय करती है कि तत्व पॉइंटर इवेंट (क्लिक, होवर, टच) पर प्रतिक्रिया देगा या नहीं। none से तत्व क्लिक-थ्रू हो जाता है, auto डिफ़ॉल्ट व्यवहार है। उदाहरण <!DOCTYPE html> <html> <head> <style> body { font-family: Segoe UI, Tahoma, Geneva, Verdana, sa