美好的一天。我在我的网站上使用ASP.NET和bootstrap。如何显示图像? [英] Good day. I am using ASP.NET and bootstrap on my website. How do I make the image display?
本文介绍了美好的一天。我在我的网站上使用ASP.NET和bootstrap。如何显示图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<<pre>head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<meta charset="utf-8" />
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<link href="css/TheBigPicture.css" rel="stylesheet"/>
<link href="Content/bootstrap.css" rel="stylesheet" />
</head>
在我身上我有
in my body i have
<<pre>body>
<div class="container">
<div class="row">
<div class="col-md-6 col-sm-12">
<h1>The Big Picture</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni, iusto, unde, sunt incidunt id sapiente rerum soluta voluptate harum veniam fuga odit ea pariatur vel eaque sint sequi tenetur eligendi.</p>
</div>
</div>
</div>
<script src="Scripts/jquery-1.10.2.min.js"></script>
<script src="Scripts/bootstrap.min.js"></script>
</body>
和我的样式表我有
and my style sheet i have
body {
margin-top: 50px;
margin-bottom: 50px;
background: none;
}
.full {
background :url(http://wallpapercave.com/wp/hMwO9WT.jpg);
background-size:cover;
}
我的尝试:
我尝试过使用本地和网络上存储的图像,但都不会工作。我也试过内联样式
What I have tried:
I have tried using an image that is stored both locally and on the web and neither wont work. I have also tried inline styling
推荐答案
我不确定你想要显示图像的位置。 ???我找到的唯一图片是'完整'css课程中的那个。
I'm not real sure where you want the image to be displayed. ??? The only image I found was the one in the 'full' css class.
.full {
background :url(http://wallpapercave.com/wp/hMwO9WT.jpg);
background-size:cover;
}
我没有看到你在HTML中的任何地方使用该类。
也许我错了。 ???我认为你需要在你的一个组件上放置class =full。如果你想要身体上的图像,那就把它放在那里。
And I don't see you using that class anywhere in you HTML.
Maybe I am wrong. ??? I think you need to put class="full" on one of you components. If you want the image on the body, put that there.
这篇关于美好的一天。我在我的网站上使用ASP.NET和bootstrap。如何显示图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文