Different output for same box-shadow size in Chrome and Firefox
问题 Why size of box-shadow in Chrome and Firefox are different? box-shadow: 0 0 4px #aaa inset; Chrome: Firefox: I've already try the following but it's not working in latest Firefox. -moz-box-shadow: 0 0 2px #aaa inset; -webkit-box-shadow: 0 0 4px #aaa inset; How can I have cross browser box shadows in a same size? 回答1: w3schools says there are 6 values to box shadow: box-shadow: h-shadow v-shadow blur spread color inset; Blur and spread are optional and my guess is that as you only defined