2013-02-14 42 views
1

我需要幫助,我正在處理一個WordPress網站。我想要做的是在圖像周圍添加圖像邊框。我完全不知道該怎麼做,我有點困惑!這是我到目前爲止的代碼WordPress和邊框圖片

.item_image { 
width: 232px; 
height: 170px; 
padding-left: 40px; 
padding-right: 40px; 
border-image: url("/images/border.png") 30 30 30 30; 
} 

下面是邊框圖像。如果有人能夠提醒我如何在圖像周圍獲得這個邊界,我會非常感激!

here is the border image

回答

0

我設法解決它!回答如下:)

img { 
box-shadow:none; 
border-style: solid; 
border-width: 20px; 
-moz-border-image: url(images/border.png) 27 repeat; 
-webkit-border-image: url(images/border.png) 27 repeat; 
-o-border-image: url(images/border.png) 27 repeat; 
border-image: url(images/border.png) 27 fill repeat;  
}