Not able to make bootstrap responsive design work with dotnetnuke

后端 未结 3 635
旧时难觅i
旧时难觅i 2020-12-06 06:14

I have used twitter bootstrap in my project with DotNetNuke. I did my designing and layout using HTML, CSS, bootstrap. The responsive design was working fine when I tested i

相关标签:
3条回答
  • 2020-12-06 06:54

    You're missing the meta that targets mobile devices for proper scale. Insert the following in the header of your page:

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    0 讨论(0)
  • 2020-12-06 07:18

    Make sure responsive CSS(responsive.css) is included after basic not before.

    0 讨论(0)
  • 2020-12-06 07:19

    I just notice something interesting and want to share it, maybe it will help someone. In the site header section you should include first the bootstrap.css and only after that the bootstrap-responsive.css because obviously the responsive.css depends on the the bootstrap.css

    Of course the meta tag should be also present.

    <link href="/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="/css/bootstrap-responsive.css" rel="stylesheet" type="text/css" />  
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    0 讨论(0)
提交回复
热议问题