2014-09-25 24 views
0

我的邊框半徑設置在dompdf中不起作用。這裏是我的代碼:border-radius在dompdf中不工作

$html =' 
<style> 
#test { 
    background-color:blue;width:450px;height:800px;z-index:50; 
    -moz-border-radius-bottomright: 750px 150px; 
    border-bottom-right-radius: 750px 310px; 
    -moz-border-radius-bottomleft: 500px 120px; 
    border-bottom-left-radius: 450px 165px; 
} 
</style> 
<div id="test"> 

</div> 
'; 

$dompdf = new DOMPDF(); 
$dompdf->load_html($html); 
$dompdf->render(); 
+0

請幫我如何使用邊界半徑在DOMPDF – 2014-09-25 08:41:58

+0

OK先生,但是我必須使用適當的打開和關閉標籤到我的編碼但border-radius不支持,它顯示爲方格div – 2014-09-25 08:48:09

+0

您使用的是哪個版本的dompdf?另外,你想達到什麼目的?我用你的示例代碼看到了一個半徑(儘管它可能不是理想的結果)。 – BrianS 2014-10-03 03:19:49

回答

1

我擡起頭來border-radius sample,並有一些言論:

  • 好像他們正在使用的普通樣式的名稱,而不是Mozilla的具體的人。
  • 也許只有border-radius支持,而不是border-xxxx-yyyy-radius
  • 您使用的半徑值非常大,從較小的值開始。

以下的例子中,這應該工作:

$html =' 
<style> 
#test { 
    background-color:blue;width:450px;height:800px;z-index:50; 
    border-radius: 0px 0px 100px 100px; 
} 
</style> 
<div id="test"> 

</div> 
'; 
+0

這不工作,現在它顯示相同的前一個樣式 – 2014-09-25 09:27:24

+0

你看到'div 「所有? – 2014-09-25 09:27:55

+0

是的,我有1個疑問,如果他們使用任何外部鏈接來支持css3技術 – 2014-09-25 09:28:50