रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
blockly > blockRendering > ConstantProvider > injectCSS_
blockRendering.ConstantProvider.injectCSS_() तरीका
पेज में रेंडरर के हिसाब से सीएसएस इंजेक्ट करें.
हस्ताक्षर:
protected injectCSS_(tagName: string, selector: string): void;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
tagName |
स्ट्रिंग |
इस्तेमाल किए जाने वाले स्टाइल टैग का नाम. |
चुनने वाला |
स्ट्रिंग |
इस्तेमाल करने के लिए सीएसएस सिलेक्टर. |
लौटाए जाने वाले प्रॉडक्ट:
अमान्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-11-09 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2024-11-09 (UTC) को अपडेट किया गया."],[[["The `blockRendering.ConstantProvider.injectCSS_()` method injects renderer-specific CSS into the page for styling purposes."],["This protected method takes two string parameters: `tagName` for the style tag's name and `selector` for the CSS selector to target elements."],["Calling `injectCSS_()` adds styling rules, enabling customization of block rendering within the Blockly environment, ultimately affecting visual presentation."]]],["The `injectCSS_` method, part of the `blockRendering.ConstantProvider` class, adds renderer-specific CSS to the page. It takes two string parameters: `tagName`, which specifies the style tag's name, and `selector`, which defines the CSS selector. This protected method modifies the page's style by adding new style rules. It does not return any data.\n"]]