textarea
{text-shadow:white 0px 1px 0px, white 0px -1px 0px, white -1px 0px 0px, white 1px 0px 0px, white -1px 1px 0px, white 1px 1px 0px, white -1px -1px 0px, white 1px -1px 0px, white 0px 1.5px 0px, white 0px -1.5px 0px, white -1.5px 0px 0px, white 1.5px 0px 0px, white -1.5px 1.5px 0px, white 1.5px 1.5px 0px, white -1.5px -1.5px 0px, white 1.5px -1.5px 0px, rgb(133, 133, 133) 0px -1px 4px, rgb(133, 133, 133) 0px 3px 4px, rgb(133, 133, 133) 3px 0px 4px, rgb(133, 133, 133) -3px 0px 4px;
color:red;
}
<textarea >default text in the textarea
</textarea>
如何在畫布文本應用此文字陰影。我搜索了各種方式,如(http://jsfiddle.net/DirkWeber/nnqc8/1/light/),我無法在畫布文本中複製這種類型的文字陰影。請讓我知道如何做到這一點。
使用陰影,填充顏色,筆畫顏色和筆畫寬度的混合[近似您的效果](https://jsfiddle.net/r2apkwh0/1/)...根據需要調整字體大小 – markE