在剃刀视图中水平显示图像 [英] displaying images horizontally in razor view

查看:70
本文介绍了在剃刀视图中水平显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我看来,图像是垂直列出的,文本在它们下面。我想逐行列出图像。水平。我怎样才能做到这一点。我可以得到语法吗?



我必须在css中这样做吗?或者我可以在自己的视野中做那个位置安排?



这是最好的方法吗?我该怎么做?



我是mvc的新手,我能得到一个示例语法吗?

In my view the images are listed vertically with the text underneath them. I want to list the images row by row. horizontally. how can i do that. can i get the syntax ?

do i have to do it in the css ? or i can do that position arrangement in the view irself?

which is the best way? and how do i do it?

i''m new to mvc and can i get an example syntax please?

推荐答案

该视图用于生成html代码。默认情况下,html代码本身会自上而下呈现。改变这种行为的唯一方法是定制一个合适的CSS。

查看此示例: http:// www。 css-lab.com/demos/image-display/side-scroll-gallery.html [ ^ ]或者这个: http://www.css-lab.com/demos/image-display/side-scroll-fullscreen.html [ ^ ]。



只需查看它的代码,您就会找到所需的信息。 将其调整为MVC应用程序需要复制粘贴。
The view is for generating html code. The html code itself is rendered top-down by default. The only way to change this behavior is to tailor a proper CSS.
Check this sample: http://www.css-lab.com/demos/image-display/side-scroll-gallery.html[^] or this one: http://www.css-lab.com/demos/image-display/side-scroll-fullscreen.html[^].

Just view it''s code and you will find what you need. "Adapting" it to an MVC application is a matter of copy-paste.


这篇关于在剃刀视图中水平显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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