html - Help with using CSS id/class id's within MVC3 -


Hello all I am trying to work through MVC3 and I use my view using CUS Formatting with ARUDN was playing. When using the html / webforms, they have been able to use the div tag and apply to that div se asian css style

using MVC and ADN while creating layouts in my view I have found that many CSS styles are not being inherited. For example: (Sorry for the image but the razor syntax is unsuccessful in the code cut / paste

 Enter an image description here

In the above version, I had a div the tag for some classes, but when I used the class property

    

For each of these div tags, only the first one will be detected. The remaining DIT tag is main In the main CSS file, it was also defined.

Anyone viewed the view and style delete tags using CSS instead of the stylized properties as shown in the image above. Please tell me some information or is it right because you can not directly call the CSS styles from one view because they are only recognized by the page layout.cshtml or masterpages?

Thanks in advance

: Please see the following

code (using the razor engine) to troubleshoot this problem: ) See  Enter image details here

Code inside CSS

 Code inside CSS

How the output notice from the developer toolbar detects the first div level characteristics  Enter image details here

Output from the developer toolbar now notice how a style is not implemented in the image device

Enter image details here

What's interesting is that If the B source is appearing in html then you can see the CSS tag within the DIV tag

Definitive Y is not the case; Something else is going on.

Have you included your CSS file in the view or is this a master page?

  & lt; link href = "@ Url.Content (" /Content/YourCSS.css ")" rel = "stylesheet" type = "text / css" />   

Or can you manually add CSS to your view?

  & lt; Style type = "text / css" & gt; Div.myfirststyle {...} & lt; / Style & gt;   

If so, have you confirmed the spelling of the classes? Topos happens, and we can not see from our image whether you add sections to divs or not. Add some of your code, even if you can not format it adequately :)

Comments