📜  elementor 背景控制 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:52.599000             🧑  作者: Mango

代码示例1
$this->add_group_control(
            \Elementor\Group_Control_Background::get_type(),
            [
                'name' => 'background',
                'label' => __( 'Background', 'plugin-domain' ),
                'types' => [ 'classic', 'gradient', 'video' ],
                'selector' => '{{WRAPPER}} .wrapper',
            ]
        );