简体   繁体   中英

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.

<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. Now the rect potion outide the svg is not visible. but the horizontal scrollbar get enabled upto the rect width in window. This happen only in 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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