zoukankan      html  css  js  c++  java
  • 新浪导航--padding撑开盒子,不是width

    <!DOCTYPE html>
    <html lang="en">
    
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <style>
            
            
            a {
                display: inline-block;
                padding: 10px 30px;
                background: pink;
                text-decoration: none;
                color: grey;
            }
            
            a:hover {
                background: blue;
            }
        </style>
    </head>
    
    <body>
        <a href="#">新浪导航1</a>
        <a href="#">新浪导航22</a>
        <a href="#">新浪导航333</a>
        <a href="#">新浪导航4444</a>
        <a href="#">新浪导航55555</a>
    </body>
    
    </html>
    
  • 相关阅读:
    Constructor构造方法
    overload重载
    static关键字
    this关键字
    继承
    ORACLE数据库 常用命令和Sql常用语句
    常见单词
    L贪心基础
    J贪心
    K贪心
  • 原文地址:https://www.cnblogs.com/icemiaomiao3/p/14577691.html
Copyright © 2011-2022 走看看