I am trying to use the new text stroke features, and I have searched the cross browser solution on the Internet. So far, I can only find it using the webkit properties.
-webkit-text-stroke: 2px #FF1E00;
Could you tell me if there is a way for all browsers to display the same way?
As of May 24 th 2012, there is no cross-browser solution, since only webkit supports an experimental function according to http://caniuse.com/#search=text-stroke . You can imitate this (to some extent) with 4 or 5 text-shadowon an element.
text-shadow
Demo: Text Move , at CSS-Tricks.com
.strokeme { color: white; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }
from:
" text-shadow ( Chrome, Firefox, Opera IE 9, ).
strokeText.js, javascript .
-webkit-text-stroke
, .
- , :
color: blue; -webkit-text-stroke-color: blue; -webkit-text-fill-color: white; -webkit-text-stroke-width: 3px;
, WebKit , - ( ).