无意中输入</br>发现也能实现换行,然后尝试了下<br>和<br/>也可以,这是什么原因?
phpcn_u224
phpcn_u224 2016-12-21 10:05:07
0
3
1028

无意中输入</br>发现也能实现换行,然后尝试了下<br>和<br/>也可以,这是什么原因?

phpcn_u224
phpcn_u224

reply all(3)
数据分析师

I accidentally entered </br> and found that line breaks can also be achieved, and then I tried <br> and <br/> also worked. What is the reason? -PHP Chinese website Q&A-I accidentally entered </br> and found that line breaks can also be achieved, and then I tried <br> and <br/>. What is the reason? -PHP Chinese website Q&A

Please watch and learn.

刘奇

他们的功能是没有区别的,不同的是代码的规范问题<br/>是比较规范的写法


阿神

根据版本的不同标准也不一样,HTML4中是<br />是这种的,而在HTML5中直接写<br>就可以,不用在意这个,只是版本标准不一样而已

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template