Welcome to 16892 Developer Community-Open, Learning,Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

文字定位再input框内 内容超过一屏出现滚动条 怎么才能让文字跟随input下滑imageimage


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
624 views
Welcome To Ask or Share your Answers For Others

1 Answer

你是说那个“反问轮数:”跟着输入框滚动对吗?

一个简单的办法,改改HTML结构,把input标签和文字(用比如span标签包裹)标签放在同一个div里,然后给这个div设置position: relative;,给文字span设置position: absolute;,调整调整位置,就可以跟着滚动了。

希望能帮到你。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to 16892 Developer Community-Open, Learning and Share
...