c1.innerHTML="<input type=\"text\" name=\"txtUserName\" id=\"txtUserName\" class=\"addUserTxt\"/>"
c1.className = "TableTd"
var c2 = row.insertCell(1)
c2.innerHTML="<input type=\"text\" name=\"txtPassword\" id=\"txtPassword\" class=\"addUserTxt\"/>"
c2.className = "TableTd"
其实可以写个div,给div的下边框加上线条,控制div的长度就可以了
.token {width: 300px
border-bottom: 1px solid black
}
<div class="token">外婆家私房菜:账户管理</div>