<wbr> HTML标签功能演示实例页面

回到相关文章 »

效果:

CanvasRenderingContext2D.globalCompositeOperation

代码:

CSS代码:
.box {
    width: 150px;
    background-color: #cd0000;
    color: #fff;
    animation: resize 5s infinite both alternate;
}
@keyframes resize {
    0% { width: 150px; }
    100% { width: 290px; }
}

/* fix IE */
wbr:after { content: '\00200B'; }
                
HTML代码:
<div class="box">
  Canvas<wbr>Rendering<wbr>Context2D<wbr>.global<wbr>Composite<wbr>Operation
</div>