0
我有小项目使用HTML,CSS,C#与剃刀语法。如何在布局页面上放置图像?
我有布局页面(sheard文件夹),我使用renderbody()。
在布局页面上,我想要在所有页面上放置一个图像(“intro.png”)(因为我将图像放在布局页面上),但是当我在其他页面放置在我的小网页不会显示,只显示在第一页上。 这是我的布局页的asection:
<!-- Introduction -->
<header>
<h2>head?</h2>
</header>
<p>some text.</p>
<img src="Content/images/intro.png">
</section>
<div id="content">
@RenderBody()
<aside>
<section>
<header>
<h3>Categories</h3>
</header>
</section>
<section>
<header>
<h3>Archives</h3>
</header>
<ul>
<li><a href="#">December 2008</a></li>
<li><a href="#">January 2009</a></li>
<li><a href="#">February 2009</a></li>
<li><a href="#">March 2009</a></li>
</ul>
</section>
</aside>
</div>
你好!感谢它的工作正常 – 2014-08-28 05:49:22
@ user3584019 ...你的欢迎.. – 2014-08-28 05:49:42