Table is often used in HTML and JSP, but how do you implement a slash in the Header table in table? A lot of information from the Internet, can be implemented in several ways, now provides a simple way to operate, and do not consider the problem of resolution,
Here's how:
The method is not purely to draw a slash in the table, but to achieve the contrast between the two colors, the realization of a diagonal sense:
<!DOCTYPE HTML><HTMLLang= "en"> <Head> <MetaCharSet= "UTF-8"> <Metaname= "Generator"content= "editplus®"> <Metaname= "Author"content=""> <Metaname= "Keywords"content=""> <Metaname= "Description"content=""> <title>Document</title> <style> /*Diagonal Money Rectangle width of 50, height of 100, respectively, corresponding to Border-top and Border-left two properties to set*/. D1{Border-top:100px Threedlightshadow Solid;Border-left:120px Windowframe Solid;width:0;Height:0;position:relative;Color:#FFF}span{Display:Block;width:40px}. S1{position:Absolute;Top:-70px; Left:-44px;Color:Black;}. S2{position:Absolute;Bottom:8px; Right:55px}</style> </Head> <Body> <Divclass= "D1"> <spanclass= "S1">Professional</span> <spanclass= "S2">Project</span></Div> </Body></HTML>
Reference: http://share.iteye.com/blog/1670054
HTML implements a header with a slash