zoukankan      html  css  js  c++  java
  • 链接属性

    链接属性

    百度 淘宝 京东
    <!DOCTYPE html>
    <html>
    <head lang="en">
        <meta charset="UTF-8">
        <title>链接属性</title>
        <style>
            table{
                font-family: "楷体";
                font-size: 33px;
                 280px;
                text-align: center;
                border-collapse: collapse;
                background-color: lightsteelblue;
            }
            /*按照 a:link, a:visited, a:hover,a:active顺序写*/
            /*伪类别选择器*/
            /*普通样式*/
            a:link,a:visited{
                color: darksalmon;
                background-color: lightsteelblue;
                text-decoration: none;
            }
            /*访问过的样式*/
            /*a:visited{
                color: darksalmon;
                background-color: lightsteelblue;
                text-decoration: none;
    
            }*/
            /*鼠标悬浮在上面的样式*/
            a:hover{
                color: lightslategray;
                background-color: seagreen;
            }
            /*激活状态的样式*/
            a:active{
                color: red;
                background-color: black;
            }
        </style>
    </head>
    <body>
        <table>
            <tr>
                <td>
                    <a href="http://www.baidu.com">百度</a>
                    <a href="http://www.taobao.com">淘宝</a>
                    <a href="http://www.JD.com">京东</a>
                </td>
            </tr>
        </table>
    </body>
    </html>
    

      

  • 相关阅读:
    700.二叉搜索树中的搜索
    645.错误的集合
    567.字符串的排列
    560.和为K的子数组
    518.零钱兑换 II
    516.最长回文子序列
    509.斐波那契数
    503.下一个更大元素 II
    496.下一个更大元素 I
    leetcode 1171 Remove Zero Sum Consecutive Nodes from Linked List
  • 原文地址:https://www.cnblogs.com/john568300/p/6398653.html
Copyright © 2011-2022 走看看