简体   繁体   English

如何避免IE中的滚动条?

[英]How to avoid the scrollbar in IE?

I have a div of width 533px, inside the div i have svg element with same width to hold some rect element. 我有一个宽度为533px的div,在div内我有相同宽度的svg元素来容纳一些rect元素。

<div style="left: 47px; top: 479px; width: 533px; height: 56px; position:  absolute;>

<svg style=" width: 533px; height: 56px;>
 .... 
 // Some rect Element inside the svg
</svg>

<div>

The width of the rect is higher than the svg element, so i have clipped the rect using clippath. rect的宽度大于svg元素,因此我使用clippath剪切了rect。 Now the rect potion outide the svg is not visible. 现在,svg以外的rect药水不可见。 but the horizontal scrollbar get enabled upto the rect width in window. 但是水平滚动条将一直启用到窗口中的矩形宽度。 This happen only in IE. 这仅在IE中发生。 In other browsers its working fine. 在其他浏览器中,它的工作正常。

How to fix this problem? 如何解决这个问题?

Thanks in Advance 提前致谢

it's your browser compatibility issue, you must update your browser or you can use 这是您的浏览器兼容性问题,您必须更新浏览器,否则您可以使用

<style>overflow:hidden;</style>

write this code in your header or in your main css.. hope it will work 将此代码写在标题或主CSS中。希望它能工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM