<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style>
.cron{
/*width: 0px;
height: 0px;
display: inline-table;
border-top: 100px solid red;
border-right: 100px solid black;
border-bottom: 100px solid green;
border-left: 100px solid pink;
position:absolute;
}
.cron:hover{
left:100px;
top:100px
}*/
/*width: 100px;
height: 100px;
display: inline-block;
border-top:100px solid transparent;
border-right:100px solid transparent;
border-bottom: 100px solid green;
border-left: 100px solid transparent;
*/
width:50px;
height: 50px;
display: inline-table;
border-top: 100px solid red;
border-right: 100px solid black;
border-bottom: 100px solid green;
border-left: 100px solid pink;
</style>
</head>
<body>
<span class="cron"></span>
</body>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style>
.cron{
/*width: 0px;
height: 0px;
display: inline-table;
border-top: 100px solid red;
border-right: 100px solid black;
border-bottom: 100px solid green;
border-left: 100px solid pink;
position:absolute;
}
.cron:hover{
left:100px;
top:100px
}*/
/*width: 100px;
height: 100px;
display: inline-block;
border-top:100px solid transparent;
border-right:100px solid transparent;
border-bottom: 100px solid green;
border-left: 100px solid transparent;
*/
width:50px;
height: 50px;
display: inline-table;
border-top: 100px solid red;
border-right: 100px solid black;
border-bottom: 100px solid green;
border-left: 100px solid pink;
</style>
</head>
<body>
<span class="cron"></span>
</body>
</html>
display: inline-table 可以使文字和表格在同一行显示
-------------------------------------------