开发者

Asp.Net Panel control in MVC3 Razor

开发者 https://www.devze.com 2023-03-27 15:16 出处:网络
Is it possible to use Panel control(Asp.net) with scrolling in MVC3 Razor? If not what will开发者_StackOverflow社区 be the alternative for this control?I found it as very simple one. Thanks Sternr. I

Is it possible to use Panel control(Asp.net) with scrolling in MVC3 Razor? If not what will开发者_StackOverflow社区 be the alternative for this control?


I found it as very simple one. Thanks Sternr. I used div instead of Panel

coding

CSS will be

{
width:180px;
height:584px;
background-color:#CCCCCC;   
float:left;
overflow:auto;
}

And if you don't need horizontal / vertical scroll specifically

You can give like

    overflow-x:Hidden; Or
    overflow-y:Hidden.

I didn't check compatibility for all browser versions. But it works fine on Chrome 13.0.782.107, Firefox 5.0 and IE 9

For IE8: -ms-overflow-y: hidden;

Thanks

0

精彩评论

暂无评论...
验证码 换一张
取 消