סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
blockly > utils > dom > setCssTransform
מגדיר את מאפיין הטרנספורמציה של CSS על רכיב. הפונקציה הזו מגדירה את הגרסאות ללא קידומת של הספק ואת הגרסאות עם קידומת הספק לתאימות לאחור עם דפדפנים ישנים. פרטים נוספים זמינים בכתובת https://caniuse.com/#feat=transforms2d
Signature:
export declare function setCssTransform(element: HTMLElement | SVGElement, transform: string): void;
פרמטרים
פרמטר |
סוג |
תיאור |
רכיב |
HTMLElement | SVGElement |
הרכיב שעליו תחול הטרנספורמציה של CSS. |
ונבצע טרנספורמציה |
מחרוזת |
הערך של מאפיין שירות ה-CSS transform . |
החזרות:
ריק
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון 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"]],["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["The `setCssTransform` function applies CSS transforms to HTML or SVG elements, ensuring compatibility with various browsers."],["It takes the element and the desired transform string as input and sets the necessary CSS properties for the element."],["This function improves cross-browser compatibility for CSS transforms by setting both vendor-prefixed and non-prefixed versions of the `transform` property."],["It directly modifies the element's style and does not return any value."]]],["The `setCssTransform()` function applies a CSS transform to an HTML or SVG element. It accepts two parameters: `element`, the target element for the transformation, and `transform`, a string representing the desired CSS transform value. It sets both vendor-prefixed and non-prefixed CSS transform properties to ensure compatibility across various browsers. This function does not return any value.\n"]]