gpt4 book ai didi

html - 在IE上隐藏滚动条(保留边框)

转载 作者:太空宇宙 更新时间:2023-11-04 13:09:20 25 4
gpt4 key购买 nike

我有一个 div:

overflow-y: scroll

我想在 IE 上隐藏滚动条,我使用:

-ms-overflow-style: none;

不幸的是,这会删除 div 上的边框:

border-right: 1px solid red;

如何在 IE 中删除滚动条但仍保留 div 上的边框?

最佳答案

使用此代码我无法在 ie 11 或 edge 中复制您的问题

<div>Lorem ipsum dolor sit amet, sit at sonet theophrastus, volumus 
torquatos at sit, te mucius detraxit nec. Eros impedit sadipscing no est,
wisi perpetua interpretaris ne est. In nam natum audiam abhorreant,
postea salutandi nam an, ne vim admodum repudiandae dissentiunt. Ea vix debet
invenire, id dicat periculis pro, ne mazim mediocrem reprehendunt cum. Vel inermis cotidieque an.

Id pri exerci ponderum, assum disputationi in eos. Ne brute definitionem
sit, cibo putent vocibus ius an. Vix autem ludus ceteros te, disputando
appellantur no mea. Ut qui labitur adipisci, his maiorum suscipiantur
necessitatibus at.

Eum vide mutat harum at. In vim utinam aperiam, vel te delenit recteque
theophrastus. Et has principes splendide, euismod dolores accommodare his
cu. Quidam labores facilisi sea ei, in qui dignissim persequeris. Ei pro
inani aeterno volutpat, nam no malis aperiri. Vim legimus patrioque
rationibus ex.

Ad vis commune salutatus. At ancillae pertinacia mel, ne odio purto
albucius duo. Ut pri augue admodum, pro at dicam tritani. Cu iusto dicit
copio

sae his, nec ea reque doming.</div>

div {
width:300px;
height:300px;
border:1px solid Red;
overflow-y:scroll;
-ms-overflow-style: none;
}

http://codepen.io/anon/pen/dMbYqG

关于html - 在IE上隐藏滚动条(保留边框),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35604821/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com