當我添加border-image
然後旋轉它時遇到了一些CSS錯誤。在邊界圖像上旋轉後,我們可以看到更多的線條,我怎麼去除它。沒有旋轉,所有看起來不錯我該如何解決這個CSS bug border-image?
height: 96px;
width: 260px;
vertical-align: middle;
display: table;
border: 26px solid transparent;
margin: 0 auto;
-webkit-border-image: url(/wp-content/uploads/2016/08/border.jpg) 48 stretch;
border-image: url(/wp-content/uploads/2016/08/border.jpg) 48 stretch;
-webkit-transition: all ease-in .3s;
transition: all ease-in .3s;
background-color: #cad584;
-webkit-transform: rotate(-2deg);
-ms-transform: rotate(-2deg);
transform: rotate(-2deg);
position: relative;
問題尋求幫助的代碼必須包括必要的重現它最短的代碼**在問題本身**最好在[**堆棧片段**](https://blog.stackoverflow.com/2014/09/introduction-runnable-javascript-css-and-html-code-snippets /)理想地與實際圖像。請參閱[**如何創建最小,完整和可驗證的示例**](http://stackoverflow.com/help/mcve) –
另外,您還可以在代碼中引用文本中的「translate」,但使用「rotate」。 –
這不是一個錯誤,它是CSS項目旋轉的方式。這與抗鋸齒有關。最好的方法是將圖像保存爲旋轉狀態。 – Lee