Inconsistent Box Shadow Appearance on Table Rows Across Browsers
CSS box-shadow applied to table rows (
To resolve this issue, it is recommended to utilize the transform property in conjunction with the box-shadow attribute. Adding scale(1,1) to the transform property forces the browser to re-render the element, ensuring that the box-shadow effect is applied uniformly.
Here is the updated CSS code:
tr:hover { transform: scale(1,1); -webkit-transform: scale(1,1); -moz-transform: scale(1,1); box-shadow: 0px 0px 5px rgba(0,0,0,0.3); -webkit-box-shadow: 0px 0px 5px rgba(0,0,0,0.3); -moz-box-shadow: 0px 0px 5px rgba(0,0,0,0.3); }
By adding this code snippet, the box shadow will now appear consistently across supported browsers.
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3