gpt4 book ai didi

css - 滚动条仅显示 x-scroll

转载 作者:行者123 更新时间:2023-11-28 11:57:06 25 4
gpt4 key购买 nike

我有一个奇怪的问题...我的文本区域只显示 x-sroll...不知道为什么 y-scroll 没有显示..已尝试将所有设置为 !important, position: relative with z-index: 999999等

x-scroll 仅用于测试。

有人知道这个问题吗?我也在使用基础 3。

CSS:

div.forum_new_thread textarea{
position: relative;
width:488px;
top: 131px;
height:212px;
border: none;
resize:none;
background: #f4f9f4;
box-sizing:border-box;
-moz-box-sizing:border-box; /* Firefox */
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
-ms-border-radius: 0px;
-o-border-radius: 0px;
border-radius: 0px;
overflow-x:scroll;
overflow-y:scroll;
font-size: 18px;
padding:15px;
color:#2f2f2f!important;
font-family: 'vaud_display_medium';

}



div.forum_new_thread textarea::-webkit-scrollbar {
width: 18px;
border-left:1px solid #5a5a5a;
}

div.forum_new_thread textarea::-webkit-scrollbar-track {

background:black;

}

div.forum_new_thread textarea::-webkit-scrollbar-thumb {
background:#5a5a5a;
border:1px solid black;
}

Scrollbar

最佳答案

如果你喜欢,试试这个。第一次你看不到 x-scroll 但当你在 textarea 中输入文本时你可以看到它。

<html>
<head>
<style>
div.forum_new_thread textarea{
position: relative;
width:488px;
top: 131px;
height:212px;
border: none;
resize:none;
background: #f4f9f4;
box-sizing:border-box;
-moz-box-sizing:border-box; /* Firefox */
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
-ms-border-radius: 0px;
-o-border-radius: 0px;
border-radius: 0px;
overflow-x:scroll;
overflow-y:scroll;
font-size: 18px;
padding:15px;
color:#2f2f2f!important;
font-family: 'vaud_display_medium';

}



div.forum_new_thread textarea::-webkit-scrollbar {
width: 18px;
border-left:1px solid #5a5a5a;
}

div.forum_new_thread textarea::-webkit-scrollbar-track {

background:black;

}

div.forum_new_thread textarea::-webkit-scrollbar-thumb {
background:#5a5a5a;
border:1px solid black;
}

</style>
</head>
<body>
<div >
<div class='forum_new_thread'>
<textarea>

Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer
took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries
but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the
release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus
PageMaker including versions of Lorem Ipsum.

</textarea>
</div>
</div>
</body>
</html>

关于css - 滚动条仅显示 x-scroll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20047217/

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