zoukankan      html  css  js  c++  java
  • IE6实现图片或背景的圆角效果

    使用ie-css3.htc实现背景圆角效果

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style>
    .box {
        background-image: url(Demo.jpg);
        height: 165px;
        width: 220px;
        -moz-border-radius: 15px; /* Firefox */
        -webkit-border-radius: 15px; /* Safari Chrome */
        border-radius: 15px; /* Opera 10.5+,  Internet Explorer 6+  IE-CSS3 */
        -moz-box-shadow: 10px 10px 12px #000; /* Firefox */
        -webkit-box-shadow: 10px 10px 12px #000; /* Safari 和 Chrome */
        box-shadow: 3px 3px 10px #000; /* Opera 10.5+, IE6+ IE-CSS3 */
        behavior: url(ie-css3.htc); /* 对IE-CSS3的引用 */
    }
    </style>
    </head>
    <body>
    <div class="box"></div>
    </body>
    </html>

    ie-css3.htc下载链接:http://pan.baidu.com/s/1gdknU3x

    查看ie-css3详细信息:http://www.evernote.com/shard/s329/sh/9b193dc6-3bb7-4320-9736-b09c764c1735/72c350c1a668af63172fb53fe1f73457

    上面这种对于<img>标签不能达到效果。

    使用DD_roundies实现圆角

    <!DOCTYPE HTML>
    <html>
    <head>
    <script src="DD_roundies.js"></script>
    </head>
    <body>
    <div class="test" style="background-image:url(2.jpg);88px;height:106px;">
    </div>
    <img src="2.jpg" alt="" class="test"/>
    <script type="text/javascript">
            DD_roundies.addRule('.test', '10px 10px', true);
    </script>
    </body>
    </html>

    DD_roundies下载地址:

      DD_roundies.js:http://pan.baidu.com/s/1o68wluE

      DD_roundies.min.js:http://pan.baidu.com/s/1jGqTwI6

    查看DD_roundies详细信息:http://www.evernote.com/shard/s329/sh/a4a78b4f-4551-41a5-88b8-4e0af5adc6b5/5d0f63706de13e6862447f3d936e17df

  • 相关阅读:
    n皇后问题
    几种NFS系统对比,选型理由
    MooseFs集群故障恢复运维
    TB级NFS数据平滑迁移方案设计与实现
    NFS挂载各机显示用户不同的问题
    TB级NFS数据平滑迁移系列
    mysql备份和恢复
    Java基础赋值符号
    java 流程控制基础之if else
    Java基础赋值符号
  • 原文地址:https://www.cnblogs.com/sydeveloper/p/3811887.html
Copyright © 2011-2022 走看看