61,115
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<style type="text/css">
.ft {
position: relative;
margin-right: 30px;
}
.fb {
position: absolute;
top: -0.5em;
left: 0px;
width: 30px;
text-align: center;
}
.fm {
position: absolute;
top: 0.5em;
left: 0px;
width: 30px;
text-align: center;
border-top: 1px solid #000;
}
</style>
</head>
<body>
<br /><br /><br /><br />
fffff 1+<span class="ft"><div class="fb">1</div><div class="fm">2</div></span>+<span class="ft"><div class="fb">1</div><div class="fm">100</div></span> nnnnnnnnn
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<style type="text/css">
#ft {
position: relative;
top: 0.5em;
}
#fb {
position: absolute;
top: -1em;
text-decoration: underline;
}
</style>
</head>
<body>
<br /><br />
fffff 1+<span id="ft"><span id="fb">1</span>2</span> nnnnnnnnn
</html>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style type="text/css">
.percent{
position: relative;
}
.percent span:nth-child(1){
border-bottom: 1px solid #000;
position: absolute;
top: -2px;
}
.percent span:nth-child(2){
position: absolute;
top: 15px;
}
</style>
</head>
<body>
<div class="percent">
<span>1</span>
<span>2</span>
</div>
</body>
</html>