AI代码解释 <html><head><style type="text/css"></style></head><body><div style="display:inline-black;float:left;width:100%;text-align:center"><div style="width:600px;"><span style="background-color:red;">div 元素的内容不会显示出来!</span></div></div></body></html> 显示结果:...
你要设置在同一行有两个办法:第一:把输入框前面的两个字用标签label或者span包起来,都需要设置float:left;代码:<label style="float:left">姓名:</label><input style="display:block;float:left;"> 这样就会在同一行了。设置了float:left以后 输入框就是块级元素,这个时候display:block;...