The creation of the three-dimensional form, there are many articles on the Internet. It is mainly the setting of BorderColorLigth and Dark Border BorderColordark, forming a contrast. The resulting three-dimensional effects .. Unfortunately, there is no corresponding setting in CSS. Can't use CSS definition Do you have an answer ..
With CSS custom property expression. We can self-defined attributes. You can combine CSS and JS. Below, you will talk about a small application of Expression. It is the title of the article. Make a stereo table with CSS.
// Define Table style. Cellspacing, cellpadding // bordercolorlight, bordercolordark.
Function Table3D (OBJ) {Obj.Border = 1; Obj.cellSpacing = 0; obj.cellpadding = 0; obj.bordercolorlight = "# fffff"; obj.bordercolordark = "# ffffff";
/ / Define the style of TD. BGColor // Bordercolorlight, Bordercolordark
Function TD3D (OBJ) {Obj.bgcolor = "# b7b7b7"; obj.bordercolorlight = "# 000000"; obj.bordercolordark = "# eeeeee";} script>