Is it possible to draw circle using css only which can work on most of the browsers (IE,Mozilla,Safari) ?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
- Adding a timeout to a render function in ReactJS
Yep, draw a box and give it a border radius that is half the width of the box:
Working demo:
http://jsfiddle.net/DsW9h/1/
This will work in all browsers
You could use a .before with a content with a unicode symbol for a circle (25CF).
I suggest this as border-radius won't work in IE8 and below (I recognize the fact that the suggestion is a bit mental).
yes it is possible you can use border-radius CSS property. For more info have a look at http://zeeshanmkhan.com/post/2/css-rounded-corner-gradient-drop-shadow-and-opacity
yup.. here's my code:
border radius is good option, if struggling with old IE versions then try HTML codes
and use css to change color. Output: