ãCSS3ãåãã©ã¦ã¶ã«ããã rgba ã®èª¤å·®
åãã©ã¦ã¶ã§ rgba ã®æåãéãã
誤差ãçããã®ã¯ã¢ã«ãã¡å¤ã ãã以ä¸ã®ã¨ããçµæãç°ãªãã
ãã¹ãä¾ï¼
var div = document.createElement("div"); div.style.backgroundColor = "rgba(0, 0, 0, 0.5)";
åãã©ã¦ã¶ã§ backgroundColor ã®å¤ã確èªããã¨ãã
- Google Chrome 22.0.1229.94
çµæï¼"rgba(0, 0, 0, 0.498039)" - Safari 6.0.1 (8536.26.14)
çµæï¼"rgba(0, 0, 0, 0.496094)" - Firefox 16.0.1
çµæï¼"rgba(0, 0, 0, 0.5)" - Opera 12.01
çµæï¼"rgba(0, 0, 0, 0.5059)"
Firefox ã®çµæãçæ³çã
åãã©ã¦ã¶ã§å¤ã®æã¡åããéãã®ã ããããã©ãè¨ã£ãè¨ç®ã§ãããªã£ãã®ãã¯æ°ã«ãªãã¨ãã