zoukankan      html  css  js  c++  java
  • 重新学习html和css

    当初学习前端的时候,属于快速入门那种,没有好好深入学习html和css。如今,在空闲时间重新拿起基础书学习,都会写到一些新的知识。

    1、css实现圆角、渐变功能。使用border-radius以及linear-gradient属性。

    <!DOCTYPE html>
    <html>
    <head>
    <style type="text/css">
    a{
    height: 40px;
    line-height: 40px;
    color:#fff;
    text-decoration: none;
    background-repeat: repeat-x;
    display: inline-block;
    margin: 20px;
    padding: 20px;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    background-color: #42c264;
    background-image: -webkit-linear-gradient(#4fec50,#42c264);
    background-image: -moz-linear-gradient(#4fec50,#42c264);
    background-image: -o-linear-gradient(#4fec50,#42c264);
    background-image: -ms-linear-gradient(#4fec50,#42c264);
    background-image: linear-gradient(#4fec50,#42c264);
    }
    </style>
    <title>日常练习</title>
    </head>
    <body>
    <a href="#">Box Title</a>
    </body>
    </html>
    <script type="text/javascript"></script>

      

  • 相关阅读:
    sort详解
    php之opcodes
    [转载] PHP升级导致系统负载过高问题分析
    Openresty实现获取内部location
    LUA语法汇总
    Openresty常用指令和参数
    PHP中的垃圾回收机制
    MySQL字段类型VARCHAR
    笔试题多线程
    笔试代码考查
  • 原文地址:https://www.cnblogs.com/luoxuemei/p/10428011.html
Copyright © 2011-2022 走看看