ds2321 2015-10-03 04:17
浏览 20
已采纳

网站宽度缩放

I think I have done a bad thing. On my site http://NWGlobalVA.com I have been playing with the idea of having the site scale with the width of the browser. I have now realized that this is a bad idea because my Elements bunch up and it starts to look terrible.

My issue is that I have backed myself into a corner when it comes to making this thing rigid again so that it doesn't scale. Does anyone have any advice on how I should do the above? I imagine it's something simple however I can't seem to find a way to lock down the elements so that everything displays okay.

  • 写回答

1条回答 默认 最新

  • dqwmhrxt68679 2015-10-03 05:04
    关注

    You are having class="bg" to your outermost div for contents. If you do some CSS tricks to this class, your problem may solve. Following are some options you can try out.

    1] Remove margin-left: 200px; and margin-right: 200px; from the css of this class and see the result. It will make the site full width regardless of the device width.

    2] Try giving CSS as width: 95%; and margin: 0 auto;

    3] If you want to make your site fully device-friendly, Bootstrap is the best option.

    4] If you want to go with current CSS rules then you can use Media Queries to handle the site dimensions according to the device. Here is the link for Media Queries for Standard Devices

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度