ul li、a标签的下划线

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

  

1
javascript:show();控制链接触发js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<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   王行行  阅读(4398)  评论(0编辑  收藏  举报

努力加载评论中...

导航

点击右上角即可分享
微信分享提示