zoukankan      html  css  js  c++  java
  • 模仿新浪微博转发框,算是挺兼容的了,IE8不太兼容吧,没怎么去测试

    View Code
    .big{
    margin-top
    :400px;
    margin-left
    :200px;
    height
    :120px;
    width
    :400px;
    background-color
    :#F8F8F8;
    border
    :1px solid #EFE7B6;
    border-radius
    :3px 3px 3px 3px;}


    .arrow
    {
    width
    :30px;
    margin-left
    :20px;
    margin-top
    :-8px !important;
    _margin-top
    :-8px;
    }


    .a,.b
    {
    display
    :block;
    font-style
    :normal;
    font-family
    :"宋体";
    font-size
    :14px;
    }
    .b
    {
    position
    :absolute;
    margin-top
    :-14.6px;
    *margin-top
    :-12.6px !important;
    color
    :#F8F8F8;
    _margin-top
    :2px;
    }

    .a
    {
    _position
    :absolute;
    color
    :#EFE7B6;
    }
    View Code
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <link rel="stylesheet" href="div.css" type="text/css">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    </head>

    <body>
    <div class="big">
      <div class="arrow">
        <em class="a"></em>
        <span class="b"></span>  </div>
    </div>
    </body>
    </html>

     请大家看看哈,非常少代码的,容易吧,哈哈

  • 相关阅读:
    zeplin 登录效果实现
    instanceof 是如何工作的
    JavaScript版—贪吃蛇小组件
    C#+HtmlAgilityPack—糗事百科桌面版V2.0
    Google自定义搜索引擎
    百度网盘资源搜索器
    CSS元素类型
    CSS盒子模型
    Android调用Web服务
    无法将匿名方法转换为System.Delegate
  • 原文地址:https://www.cnblogs.com/wanlxz/p/2742983.html
Copyright © 2011-2022 走看看