Background Image won't show up in CSS unless I load an image using the <img> tag in HTML
问题 I'm extremely confused why my code won't display the image properly. Here's my code: <style type = "text/css"> #pic { background:url('http://www.tishbi.eu/img/shopping_cart.png') no-repeat; </style> <div id = "pic"> <p> </p> </div> Only a tiny portion of the image is displayed along with the text... I'm so confused why this is happening. The only way I can display the whole image is if I add almost 170px of padding around the image. Someone please help! Thanks. 回答1: You need a closing brace