1 .要求:表格制作时要求保持表格边框
效果图:
部分代码如下。
body style='font-size: 20px;' formaction=' ' tableborder=' 1px ' cellspacing=' 0px ' cell padding=' 0px ' align=' center ' bgcolor=' black ' cap tting tdtd input type=' text ' name=' usename '/tdtd性别/tdtd input type=' te ext ' name=tdtd性别(tdtd input type=' date )/tdtd trtrbgcolor='white'TD民族/tdtd input type=' text ext type=TD TD input type=' text '/TD TD身高/TD input type=' text '/TD TD TDTDTDinputtype='text'/TD td td户籍/tdtd input type=' text '/TD/trtr bgcolor=' white ' TD专业/tdtd input type=' text ' 如果只是设置文本框的高度,宽度越大,表格就会随着文本框的高度而变宽,从而使其看起来不好看。 经过多次调试并询问老师,发现表是自适应的,所以需要通过使style的input的属性与对应表的属性相同来解决这个问题。
样式输入{填充:0 px; width: 99%; line-height:54.8px; (} /style