แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
blockly > ผู้ใช้ > dom > setCssTransform
ตั้งค่าคุณสมบัติการแปลง CSS ในองค์ประกอบ ฟังก์ชันนี้จะกำหนดเวอร์ชันที่ไม่มีผู้ให้บริการนำหน้าและตามผู้ให้บริการสำหรับความเข้ากันได้แบบย้อนหลังกับเบราว์เซอร์รุ่นเก่า ดู https://caniuse.com/#feat=transforms2d
ลายเซ็น:
export declare function setCssTransform(element: HTMLElement | SVGElement, transform: string): void;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
องค์ประกอบ |
HTMLElement | SVGElement |
องค์ประกอบที่จะใช้การเปลี่ยนรูปแบบ CSS |
การเปลี่ยนรูปแบบ |
สตริง |
ค่าของพร็อพเพอร์ตี้ transform ของ CSS |
การคืนสินค้า:
เป็นโมฆะ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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"]]