ul li、a标签的下划线

<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>

  

posted on 2018-07-12 19:32  王行行  阅读(4369)  评论(0编辑  收藏  举报

导航