html - 如何绕三 Angular 形 block 流动?

标签 html css css-float

我有两个街区。其中一个呈三 Angular 形。如何围绕这个 div 文本流动?例子: enter image description here HTML:

<div class="container">
    <div class="entry-cover">Triangle</div>
    <div class="entry-content">
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Assumenda autem ex 
           labore, repellat saepe soluta suscipit vel veniam.</p>
    </div>
</div>

CSS 没有!

最佳答案

您可以使用 css 形状。阅读此 http://webplatform.adobe.com/shapes/ .

你要知道它不是跨浏览器的。

http://caniuse.com/#feat=css-shapes

编辑 - Adob​​e 提供了 polyfill,检查一下。

https://github.com/adobe-webplatform/css-shapes-polyfill

所以如果你的网站需要跨浏览器,你就得用css(padding, margin等)或者空格来布局。

关于html - 如何绕三 Angular 形 block 流动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32305769/

相关文章:

javascript - 如何使用按钮在 html 中提供自定义警报 oe 条

css - 像 facebook 横幅一样在浏览器中跨越图像,但现在是图像

javascript - 显示数组中的数据

php - 导航栏显示不正确,通过 php echo

jquery - Bootstrap : Mouse-enter animation issue with img-responsive [Opera only]

html - 标题标签内的多个 div

css - word-break :break-all styling in firefox?的解决方案

css - 强制边距在 float 元素上折叠?

jquery - 将 float 工具栏放在表格行上

html - 使图像出现在 div 之上