小编Hru*_*til的帖子

在 iframe 中隐藏垂直滚动条

我需要删除 iframe 中的垂直滚动条。我试过使用overflow: hidden;还是不行。请帮忙。

现在的样子

代码:

#iphone4 {
background-image: url("ipad_new2.png");
background-repeat: no-repeat;
height: 900px;
width: 750px;
margin: auto ;
position: relative;
overflow: hidden;
}


/*Mobile iframe CSS*/
iframe {
height: 700px;
width: 525px;
position: absolute;
top: 68px;
margin: auto ;
left: 61.99px;
overflow-y: scroll;

}

</style>
</head>
<body>
 <div id="iphone4" >
<iframe src="index_atish.html" seamless="seamless"></iframe>
</div>

</body>
</html>
Run Code Online (Sandbox Code Playgroud)

html css

4
推荐指数
2
解决办法
5万
查看次数

标签 统计

css ×1

html ×1