html 画面横滚动条 怎么去掉

html 画面横滚动条 怎么去掉,第1张

1、取消竖直滚动条

<body style=`overflow:-Scrolloverflow-y:hidden` >

</body>

2、取消横向滚动条:

<body style=`overflow:-Scrolloverflow-x:hidden` >

</body>

3、两个滚动条都取消

<body scroll="no">

</body>

需要准备的材料分别有:电脑、浏览器、html编辑器

1、首先,打开html编辑器,新建html文件,例如:index.html,编写问题基础代码。

2、在index.html中的<script>标签,输入js代码:

$('#test').html($('#test').html().replace('<span>', '').replace('</span>', ''))。

3、浏览器运行index.html页面,此时全部span被用jquery删除掉了。


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/7301004.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-04
下一篇2023-04-04

发表评论

登录后才能评论

评论列表(0条)

    保存