java - 边界半径 css 不适用于 Flying Saucer

标签 java html css flying-saucer

我想为我的文档使用 border-radius,我很挣扎,我在 here 的堆栈溢出中发现了这段代码但结果是: output.pdf ,为什么?

<html>
<head>
<title>JS Bin</title>
<style>
  .circle {
    border-radius: 50%;
    width: 250px;height: 250px;
    background-image:url("https://fiverr-res.cloudinary.com/t_profile_original,q_auto,f_auto/profile/photos/3864710/original/isurunix.png")
  }
</style>
</head>
<body>
  <div class='circle'></div>
</body>
</html>

最佳答案

这是因为你使用了不同的结构。 试试这个:

.circle {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    width: 250px;height: 250px;
    background-image:url("https://fiverr-res.cloudinary.com/t_profile_original,q_auto,f_auto/profile/photos/3864710/original/isurunix.png")
  }

关于java - 边界半径 css 不适用于 Flying Saucer ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53790285/

相关文章:

jquery - jquery sortable 和 guids 的问题

javascript - 如何使用 html css javascript 创建包含文本的字母形状?

javascript - jQuery Draggable 在拖动后应用多次点击

java - CouchDb,Java : HTTP entity may not be null

java - 包装标准库对象并仅重写单个方法的最简单方法是什么?

javascript - 用 HTML 元素替换文本

php - 如何将按钮值发布到 PHP?

jquery - 当单元格大于主体宽度和高度时,表格会自动滚动

java - JComboBox 是原始类型。对泛型类型 JComboBox<E> 的引用应该被参数化

java - 如何判断 JDK 类是 native 实现的还是在 Java 代码中实现的?