• 2022-06-12
    给DOM对象设置红色的背景颜色,下列写法正确的是?
    A: ele . style . backgroundcolor=red ;
    B: ele . style . backgroundColor="red";
    C: ele . style . background-color="red";
    D: ele . style . backgroundColor=red ;