Html Firefox无法正确表示hr
我有一个代码,应该以格式表示输出Html Firefox无法正确表示hr,html,css,Html,Css,我有一个代码,应该以格式表示输出 _____________________________ | | |____________________________| Insert __________________________ Poster Date --------------POST------------ Comm. ________________ Comm. ____
_____________________________
| |
|____________________________|
Insert
__________________________
Poster Date
--------------POST------------
Comm. ________________
Comm. ________________
___________________________
Poster Date
--------------POST------------
Comm. ________________
Comm. ________________
现在,我的代码在chrome甚至internet explorer中都能正常工作。但是firefox不接受我的这种格式的代码
_____________________________
| |
|____________________________|
Insert
__________________________
Poster Date ___________________________
--------------POST------------
Comm. ________________
Comm. ________________
Poster Date
--------------POST------------
Comm. ________________
Comm. ________________
我在这上面花了几个小时都没有结果。有办法吗?
这是小提琴。在这里,如果页面中没有显示hr标签,请使用
将行拆分为
,这将强制新行
编辑:
我说拆分行,我的意思是将它们封装在中
第1行
第2行
而不是:
Line 1<br>
Line 2
第1行
第2行
而不是使用
将行拆分为
,这将强制新行
编辑:
我说拆分行,我的意思是将它们封装在中
第1行
第2行
而不是:
Line 1<br>
Line 2
第1行
第2行
您需要清除浮动元素,请添加此行
<div style="clear: both;"></div>
在这几行之后
<input type="submit" name="submit" value="Comment " class="button" style="font-size:1em;width:100px;float:right;margin-top:4px;"/>
</div>
</form>
注意:由于smarty正在破坏此处的表单,因此未对表单进行修饰。您需要清除浮动元素,请添加此行
<div style="clear: both;"></div>
在这几行之后
<input type="submit" name="submit" value="Comment " class="button" style="font-size:1em;width:100px;float:right;margin-top:4px;"/>
</div>
</form>
注意:没有让表单变得漂亮,因为smarty
正在破坏这里的表单闻起来像浮动问题issue@user2207792你欢迎:)顺便说一句,你的代码很难看,如果你有权修改它,就重构它out@alien,谢谢您的反馈。请您解释一下如何整理我的代码。@user2207792欢迎:)顺便说一句,您的代码很难看,如果您有权更改,请重构它out@alien,谢谢您的反馈。你能解释一下如何整理我的代码吗。