I've got over a decade of C# desktop application development under my belt but I'm new to ASP.NET MVC and my terminology may not be correct so i'll apologize ahead of time.
I've been working on an ASP.NET MVC 4 site that has jQuery 1.4 and bootstrap 3 as well as a lot of CSS customization. I've been trying to implement a feature and I've been able to do it separately with bootstrap 4 but when I copy the code over and render it in a Partial view, it turns out bad .
I've spent a lot of time trying to figure out why it's displaying so poorly and I've realized that between the bootstrap 3 and 4 incompatibilities and all of the CSS customization the site has, it's almost infeasible to use this approach.
Then I thought that I could just make all of my style
changes inline but that doesn't make things very maintainable and is apparently frowned upon.
With that being said, I've seen a number of posts about the usage of IFrame and it looks appealing but I have concerns.
cshtml
page into the IFrame?row
class to bs4-row
. As you won't need all the bs4 library to style your code, you only need to rename and compile the files you need, like: _grid.scss.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.