基本上,经过研究后,我发现文本框中的文本从底部开始并向上而不向下溢出的唯一方法是设置绝对位置和相对位置。
但这样做它就会越过我的固定导航栏。
有办法解决这个问题吗?
#ChatName{
width: 99%;
height: 20px;
text-align: center;
margin-top: 20px;
margin-bottom: 5px;
border: #000000 solid 1px;
}
#ContentWrapper{
width: 100%;
height: 600px;
}
#ChatBig {
float: left;
width: 45%;
height: 600px;
margin-left: 20px;
overflow: hidden;
border: #000000 solid 1px;
resize:none;
position: relative;
}
#ChatMessages{
width: 100%;
bottom: 55px;
margin-bottom: 5px;
resize:none;
font-size: 16px;
font-weight: normal;
overflow:hidden;
position: absolute;
}
#ChatText{
width: 100%;
height: 50px;
resize:none;
overflow:hidden;
position: absolute;
bottom: 0;
}
#ChatText:focus{outline: none;}
#RightContent{
width: 25%;
height: 600px; …Run Code Online (Sandbox Code Playgroud) 我有一个模拟狐狸和兔子的小型模拟器...我试图制作狐狸和兔子类来实现actor类,但是我收到了此错误消息,而且我不知道怎么了。
错误消息:Rabbit不是抽象的,并且不覆盖Actor中的抽象方法act(java.until.List)
兔子班
import java.util.List;
import java.util.Random;
public class Rabbit extends Animal implements Actor
{
// Characteristics shared by all rabbits (static fields).
// The age at which a rabbit can start to breed.
private static final int BREEDING_AGE = 5;
// The age to which a rabbit can live.
private static final int MAX_AGE = 40;
// The likelihood of a rabbit breeding.
private static final double BREEDING_PROBABILITY = 0.15;
// The maximum number of births.
private static final …Run Code Online (Sandbox Code Playgroud)