2017-08-04 60 views
-2

首先對於英語不好,而不是我的母語。 我嘗試多種方式,但沒有任何作品。背景和texte上的CSS圖像

I want to transforme my list (which are actualy boostrap alert) -> before 

enter image description here

into list with an image and center text like this -> after 

enter image description here 我嘗試用背景圖像的CSS屬性,但我不能操縱使用的圖像大小。我也嘗試img和文本在HTML中的div,但不起作用。 和需要響應^^

感謝您的幫助:)

+1

請張貼您的代碼。製作一個工作片段。 – codesayan

+0

你使用列表或表格或其他html結構嗎? –

+1

如果外部服務不可用,請嵌入您問題中的圖像。 –

回答

-1

您可以manipulate size of the image used例如與background-size: cover; 只要在設置background屬性後。谷歌在這個方向上,這個屬性有其他有用的價值。