我的图片不会显示在我的< div>中 [英] My images won't show up in my <div>

查看:45
本文介绍了我的图片不会显示在我的< div>中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经放入了一个类选择器,在div元素中有一个图像,图像不会显示,但所有其他格式都存在。该图像位于同一文件夹中并正确命名。 css样式表链接到其他html页面,因为之前已完成的其他样式格式已显示。



我尝试过:



以下是代码:

I have put in a class selector to have an image within a div element and the image won't show up but all other formatting is present. The image is in the same folder and named correctly. the css style sheet is linked to the other html page as other style formatting previously done has shown.

What I have tried:

Here is the code:

.fiber {
	backgroung-image: url('fiber.jpg');
	margin-top: 5px;
	margin-bottom:10px;
	margin-left:70px;
	margin-right:70px;
	padding:10px;
	border-style: double;
	border-color: white;
	font-weight: bold;
}





这里是我放入的div减去<>因为如果我在这里使用它们就不会出现



here is the div I put in minus the <> because it won't show up if I use those in here

<div class="fiber">
p Fiber Internet /p
</div>

推荐答案

如评论中所述,背景资料拼写错误。
As mentioned in the comments, backgroung-imgage is misspelled.


这篇关于我的图片不会显示在我的&lt; div&gt;中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆