1
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>花样连接卡</title>
<style>
div{
border: 1px solid red;
width: 320px;
height: 320px;
margin: 0 auto;
}
a{
border: 1px solid black;
display: block;
width: 100px;
height: 100px;
background-color: pink;
margin:0px 0px 0px 5px ;
text-align: center;
}
div a:nth-of-type(2){
position: relative;
left: 200px;
bottom: 100px;
}
div a:nth-of-type(3){
position: relative;
left: 100px;
bottom: 100px;
}
div a:nth-of-type(4){
position: relative;
bottom: 100px;
}
div a:nth-of-type(5){
position: relative;
left: 200px;
bottom: 200px;
}
a:hover{
background: blue;
}
</style>
</head>
<body>
<div>
<a>链接1</a>
<a>链接2</a>
<a>链接3</a>
<a>链接4</a>
<a>链接5</a>
</div>
</body>
</html>
2
public static void main(String[]args){
System.out.println(“本金为:1000.0”);
System.out.println("");
double price=1000.0;
double year1=0.02251price+price;
double year2=0.0272price+price;
double year3=0.03243price+price;
double year5=0.0365price+price;
System.out.println(“存取一年后的本息是:”+year1);
System.out.println("");
System.out.println(“存取两年后的本息是:”+year2);
System.out.println("");
System.out.println(“存取三年后的本息是:”+year3);
System.out.println("");
System.out.println(“存取五年后的本息是:”+year5);
存取一年后的本息是:1022.5
存取两年后的本息是:1054.0
存取三年后的本息是:1097.2
存取五年后的本息是:1180.0