如何在全屏幕上从Internet Explorer 7中删除垂直滚动条? [英] How to remove vertical scrollbar from internet explorer 7 on fullscreen?

查看:104
本文介绍了如何在全屏幕上从Internet Explorer 7中删除垂直滚动条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Internet Explorer版本是9.但我使用浏览器模式:IE7和文档模式:IE7标准。我的Asp.Net项目必须在全屏幕上查看,没有垂直滚动条。如何在全屏上删除垂直滚动条。



我使用溢出:隐藏的CSS代码并删除滚动条但是细分项目屏幕并且屏幕没有显示



My internet explorer version is 9. But I use Browser Mode: IE7 and Document Mode: IE7 standards. My Asp.Net project must viewed on full screen and without vertical scrollbar. How can I remove vertical scrollbar on fullscreen.

I use overflow:hidden css code and it removes scrollbar but break down the screen of project and screen didn''t shown

//masterpage
<body>
<form id="form1" runat="server">
    <div class="butun"> //all div tag inside of this div

//masterpage css code![image to show scrollbar][1]
html, body {
height: 100%;
font-family:Arial; }
body {
background-color:#0ff;  }

.butun {
min-height:100%;
height:100%;
margin: 0 auto -4%;
   }

推荐答案

我毫无意义,我真的希望你不能这样做。当您的内容垂直或水平不适合页面时,会出现滚动条。并且网站的用户有权按照自己喜欢的方式制作浏览器窗口的大小。预防它将是一个很大的滥用。这个要求原则上是错误的,因为它旨在限制自然用户的写入以访问您的内容。



您应该在完全不同的方向思考:制作您的页面布局容忍窗口大小。我设计了这个复杂的查询:-)为您寻找合适的技术:

http://bit.ly/12YSHKj [ ^ ]。



这是你应该寻找的。



-SA
I makes no sense, and I really hope that you cannot do this. A scroll bar appears when your content does not fit the page vertically or horizontally. And the user of the site has every right to make the size of the browser window as she/he likes. Preventing it would be a big abuse. This "requirement" is wrong in principle because it aims to limit natural user''s writes to access you content.

You should think in completely different direction: to make your page layout tolerant to window size. I designed this sophisticated query :-) for you to look for appropriate techniques:
http://bit.ly/12YSHKj[^].

This is really what you should look for.

—SA


你可能需要在 AnthonyWJone 的答案_blanktitle =禁用浏览器纵向和横向滚动条> stackoverflow.com 网站。他在那里提到如下:

You may need to head over to the answer of AnthonyWJone in stackoverflow.com website. He mentioned there as below:
So far we have overflow:hidden on the body. However IE doesn''t always honor that and you need to put scroll="no" on the body element as well and/or place overflow:hidden on the html element as well.





谢谢!



Thanks!


这篇关于如何在全屏幕上从Internet Explorer 7中删除垂直滚动条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆