The below is the code,
<?= $form->field($model, 'verifyCode')->widget(Captcha::className(), ['imageOptions'=>['style'=>'width:140px;height:50px;'] ] ) ?>
The below is the code,
<?= $form->field($model, 'verifyCode')->widget(Captcha::className(), ['imageOptions'=>['style'=>'width:140px;height:50px;'] ] ) ?>
Try so:
<?= $form->field($model, 'verifyCode')->widget(Captcha::className(), ['imageOptions'=>['style'=>'width:140px;height:50px;'], 'options'=>['placeholder'=>'My text'] ] ) ?>
It worked, Thank you