<style type="text/css">
	li { list-style: none;}//控制li的·标记
	a { text-decoration: none;} //下划线
	a:hover {
		text-decoration: underline;
	}
</style>

  

javascript:show();控制链接触发js
<div>div1</div>
	<div>div2</div>
	<ul>
		<li>1</li>
		<li>2</li>
		<li>3</li>
	</ul>
	<a href="#">122</a>
	<br>
	<script type="text/javascript">
		function show(){
			alert(new Date());//弹出现在的时间
		}
	</script>
	<!-- href="javascript:"用于连接控制js -->
	<a href="javascript:show();">控制show()</a>

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2021-12-12
  • 2021-05-21
  • 2021-11-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案