zoukankan      html  css  js  c++  java
  • CSS截字对比

    效果:

    代码:

    <div style="403px;margin:1em;overflow:hidden;line-height:1.5em;background:#9cf;font-size:12px">
    <p style="float:left;283px;margin:0;overflow:hidden;white- space:nowrap">中国在澜沧江水资源开发中一贯高度重视对资源、环境和生态的影响,并与有关国家保持良好沟通。</p>
    <p style="float:right;110px;margin:0;background:#eee;text-align:right">2010-3-26 11:18:22</p>
    </div>
    <div style="403px;margin:1em;overflow:hidden;line-height:1.5em;background:#9cf;font-size:12px">
    <p style="float:left;283px;height:1.5em;margin:0;overflow:hidden">中国在澜沧江水资源开发中一贯高度重视对资源、环境和生态的影响,并与有关国家保持良好沟通。</p>
    <p style="float:right;110px;margin:0;background:#eee;text-align:right">2010-3-26 11:18:22</p>
    </div>

  • 相关阅读:
    Blocks to Cubes
    poj1113凸包
    AtCoder Regular Contest 078D
    Codeforces Round #400
    hdu2196树形dp
    Codeforces Round #409
    Codeforces Round #424
    hdu1520树形dp第一题
    Codeforces Round #412
    poj2823单调队列
  • 原文地址:https://www.cnblogs.com/ShepherdIsland/p/1696826.html
Copyright © 2011-2022 走看看