如何在asp.net MVC中应用完整的背景图像 [英] How to apply full background image in asp.net MVC
本文介绍了如何在asp.net MVC中应用完整的背景图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是新来的asp.net MVC,我需要在登录页面上有一个完整的背景图片。我对所有的cshtmls感到困惑,并迷失在设置完整背景图像的位置。请帮助..
I'm new to asp.net MVC and I need to have a full background image on the login page. Im getting confused with all of the cshtmls and getting lost on where to set the full background image. Help please..
推荐答案
我认为最好的解决方案是通过样式表(css)来实现。所有样式应该在一个单独的css文件中。美丽的代码不要使用内联样式:
I think that best solutions is to do that via style sheets (css). All styles should be in a separate css file. For beautiful code don't use in-line styling:
body {
background-image: url('your_img_path');
margin: 0;
}
这篇关于如何在asp.net MVC中应用完整的背景图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文