Title标签中的换行
<img src="xx.gif" title="ABC<br />DEF"><!--这时title中的<br />会直接显示出来而不会达到换行效果。-->

<img src="xx.gif" title="ABC DEF"><!--用字符来达到title中换行的效果。-->

Form
<form  autocomplete="off">...</form><!--让输入框中输入过的内容不以历史记录的方式显示出来-->

用MARQUEE标签实现滚动文效果,由于MARQUEE不在W3C标准之内,请根据使用浏览器进行测试。
<MARQUEE 
style = "width:100px;height:100px;"
onMouseOver 
= "this.stop();"
onMouseOut 
= "this.start();"
loop 
= "0" 
scrollAmount 
= "2";
>
<href="#">a</a><br />
<href="#">b</a><br />
<href="#">c</a><br />
</MARQUEE>

跳转到页面中的指定位置。
<href="#theId">跳转到指定ID</a>
实践中整理的一些HTML应用技巧
<div id="theId">目标位置</div>

相关文章:

  • 2021-07-11
猜你喜欢
  • 2022-12-23
  • 2021-07-01
  • 2022-01-16
  • 2021-11-13
相关资源
相似解决方案