关于mvc中样式的问题 [英] Questions about styling in mvc

查看:120
本文介绍了关于mvc中样式的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的情况非常独特。你可以说我有报酬去上学。我会更前进。我找到了一份开发人员的工作,但实际上并不是开发人员。他们有机会教我如何做到这一点,而不是因为我有可能失败而累积债务。这里唯一的后果是失败。我可以忍受。



现在我正在做一个简单的表格。这是一个返回表格,供用户根据客户提供的信息填写。



这是我的班级。



I am in a pretty unique situation. You can say I'm being paid to go to school. I'll be more forward. I got a job as a developer, without actually being a developer. They are taking a chance on teaching me how to do this as opposed to me accruing debt with the possibility of failure. The only consequence here is failure. I can live with that.

Right now I am making a simple form. It's a returns form for users here to fill out based on information customers give them.

Here is my class.

namespace LVS.Models
{
    public class ItemReturn
    {
        [DisplayName("Customer:")]
        public string custName { get; set; }


        [DisplayName("Phone #:")]
        public string phoneNumber { get; set; }


        [DisplayName("Company:")]
        public string company { get; set; }


        [DisplayName("Invoice Number/Web order #:")]
        public int invoiceWebOrder { get; set; }


        [DisplayName("Shipping Date:")]
        public DateTime shipDate { get; set; }


        [DisplayName("Ship Method:")]
        public string shipMethod { get; set; }


        [DisplayName("Tracking Number:")]
        public string trackNumber { get; set; }


        [DisplayName("Reason Code")]
        public int reasonCode { get; set; }


        [DisplayName("Details: Include quantity, expiration dates, lot numbers of product(s), and images if available")]
        public string detailBox { get; set; }
    }
}





这是我控制器中的内容。





Here is what is in my controller.

public ActionResult Index()
           //Here I am declaring my class. Giving it purpose.  Making it the Highlander.
       {
           var model = new ItemReturn();
           return View(model);
       }









所以当我跑步时,它带来一个漂亮的外观形式。这很棒,但这不是我必须完成的全部。我需要在这些盒子周围找到文字,而我只是不知道我正在寻找的术语。有些时候,指导我的人不在这里,所以我独自留下来解决问题,因为我在这里有这些东西。我想知道的是如何获取这些框之间的填充文本。我已进入视图并对其进行了编辑,但所有这些只显示在数据字段/文本框下方。这不会起作用,谷歌今天对我不太友好。我很感激我能得到的任何建议,我很抱歉我缺乏专业术语。



你好,我注意到有人已经投了这个而没有给我任何信息。我想在这里学习。我打开了大量的浏览器窗口,覆盖了我过去一直困扰着我的大量不同的东西。我打算从解决方案窗口下面摘录一下,请求你不要再粗鲁了。 我们来这里是为了帮助开发人员,而不是让他们感到愚蠢。在没有提供背景的情况下进行投票是非常粗鲁和毫无意义的。



BTW ......我不是在寻找解决方案,我正在寻找方向指导。我想至少要有关键词,某种暗示让我到达我需要去的地方,我不喜欢被解决。它消除了学习的工作和快乐。我感谢所有帮助的人。





So when I run, it brings up a pretty nice looking form. It's great, but it's not all I must accomplish. I need to get words around these boxes, and I just plum don't know the terminology I am looking for. There are times when the people who mentor me are just not here, so I'm left on my own to figure things out, as I have these things here. What I would like to know is how do I get the filler text that is in between these boxes in where they are supposed to be. I've gone into the view and edited it in, but ALL OF THAT just appears below the data fields/text boxes. that's not going to work, and google isn't being very friendly with me today. I appreciate any advice I can get, and I'm sorry for my lack of professional terminology.

Howdy, I noticed someone has already down voted this without providing me any information. I am trying to learn here. I have tons of browser windows open covering a plethora of different things that I've been cramming into my head all day. I'm going to take an excerpt from below the solution window in plea for you to stop being rude. "We're here to help developers along their way, not to make them feel stupid." Down voting without providing context is incredibly rude and pointless.

BTW... I am not looking for a solution, I'm looking for directional guidance. I would like to at least have key words, some sort of hint to get me where I need to go, I do not like being solved. It takes away the work and joy of learning. I thank all who help.

推荐答案

这篇关于关于mvc中样式的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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