Cov txheej txheem:

MVC bootstrap yog dab tsi?
MVC bootstrap yog dab tsi?

Video: MVC bootstrap yog dab tsi?

Video: MVC bootstrap yog dab tsi?
Video: Add Bootstrap Template into ASP.NET MVC Project 2024, Kaum ib hlis
Anonim

ASP. NET MVC Bootstrap . Bootstrap yog lub vev xaib nrov uas siv los tsim cov ntawv thov lub vev xaib uas tuaj yeem khiav txawm tias ntawm lub xov tooj ntawm tes. Nws muab cov tsev qiv ntawv HTML, CSS thiab JavaScript los tsim cov ntawv thov. Cov ntawv tais ceev tseg ntawm qhov project suav nrog Bootstrap JavaScript qiv.

Hauv qhov no, yuav ua li cas bootstrap tau siv hauv MVC?

Ntxiv cov ntaub ntawv Bootstrap rau qhov project MVC

  1. Un-zip cov ntaub ntawv rub tawm bootstrap bootstrap-4.0.
  2. Luam cov folders css, thiab js los ntawm cov ntaub ntawv zip downloaded thiab muab tso rau hauv MVC qhov project folder.
  3. Mus rau qhov pom studio daws teeb meem explorer thiab suav nrog cov folders rau qhov project.
  4. Tam sim no peb yuav ntxiv qhov dependencies ntawm bootstrap.

Ib yam li ntawd, siv bootstrap hauv asp net yog dab tsi? Bootstrap muab tag nrho cov khoom koj xav tau rau kev teeb tsa, cov nyees khawm, cov ntawv, cov ntawv qhia zaub mov, widgets, duab carousels, daim ntawv lo, ntawv cim, ntawv sau, thiab txhua yam nta. Txij li thaum Bootstrap yog tag nrho HTML, CSS thiab JavaScript, txhua tus qauv qhib, koj tuaj yeem ua tau siv nws nrog txhua lub moj khaum suav nrog ASP . NET MVC.

Ntxiv rau qhov no, Cshtml sawv rau dab tsi?

cshtml stands rau C# HTML. Cov kev pom no tso cai rau Razor syntax, uas yog kev sib xyaw ntawm HTML sib xyaw nrog C#.

bootstrap hauv C# yog dab tsi?

Bootstrap lub moj khaum yog siv los txhim kho pem hauv ntej ntsib cov ntawv thov web thiab qhov chaw. Cov Bootstrap lub moj khaum muab rau koj tag nrho cov Cheebtsam. Tag nrho lub moj khaum yog module raws li, koj tuaj yeem kho nws nrog koj tus kheej me ntsis ntawm CSS. Nws kuj muab JavaScript plugins rau tej yam xws li cov lus qhia, popovers, modals thiab ntau dua.

Pom zoo: