• 2022-06-11
    在HTML的Canvas中,清空画布使用什么属性?( )
    A: clear()
    B: fillRect()
    C: strokeRect()
    D: clearRect()
  • D

    内容

    • 0

      在HTML5中,Canvas绘制矩形相关的方法不包含( )? A: fillRect(x, y, width, height) B: ptRect(x, y, width, height) C: strokeRect(x, y, width, height) D: clearRect(x, y, width, height)

    • 1

      canvas绘图是借助于javascript脚本通过( )方法进行图像绘制 A: getElementById() B: getContext("2d") C: fillRect( D: strokeRect()

    • 2

      HTML5中,Canvas用于填充颜色的属性是( )。  A: fillStyle B: fillRect C: lineWidth D: strokeStyle

    • 3

      使用canvas绘制图形时,使用什么方法改变边框的颜色值。 A: fileStyle B: strokeStyle C: fileRect D: strokeRect

    • 4

      html5新增加的canvas元素中,设置填充颜色的属性是()。 A: fillStyle B: strokeStyle C: globalAlpha D: clearRect