绘制一个填充色为半透明红色的矩形,不能实现这一效果的代码是?
A: context.globalAlpha=0.2;context.fillStyle='red';context.fillRect(0,0,100,50);
B: context.globalAlpha=0.2;context.fillStyle='rgb(255,0,0)';context.fillRect(0,0,100,50);
C: context.fillStyle='rgba(255,0,0,0.2)';context.rect(0,0,100,50);context.fill();
D: context.fillStyle='rgb(255,0,0)';context.rect(0,0,100,50);context.fill();
A: context.globalAlpha=0.2;context.fillStyle='red';context.fillRect(0,0,100,50);
B: context.globalAlpha=0.2;context.fillStyle='rgb(255,0,0)';context.fillRect(0,0,100,50);
C: context.fillStyle='rgba(255,0,0,0.2)';context.rect(0,0,100,50);context.fill();
D: context.fillStyle='rgb(255,0,0)';context.rect(0,0,100,50);context.fill();
举一反三
- Context in SFL refers to . A: Context of language B: Context of culture C: Context of society D: Context of situation
- According to Numan, context can be classified into . A: linguistic context and co-text. B: nonlinguistic context and extra-linguistic context. C: situational context and cultural context D: linguistic context and nonlinguistic context.
- How to narrow the following topic “The Effects of Deforestation on Gorillas in Africa ” A: Geographical context B: Historical context C: Biological context D: Social context
- 0号图(Diagram 0)是顶层数据流程图-环境图(Context Diagram )的初级扩展。 A: 正确 B: 错误
- 中国大学MOOC: 0号图(Diagram 0)是顶层数据流程图-环境图(Context Diagram )的初级扩展。