如何使用CSS拉伸div的全高?
我试图将div拉伸100%。应用min-height: 100%;
但没有结果。
答案 0 :(得分:2)
在你的CSS中,尝试添加它,它对我有用:)
String str = "aabbba";
int count = 1;
for(int i = 0; i <str.length();i=i+count){
count =1;
for(int j = i+1; j<str.length();j++){
if(str.charAt(i) == str.charAt(j)){
count = count+1;
}
else{
break;
}
}
// Print here otherwise you will miss the last group of letters
// Also if you just want one line use .print instead of println
System.out.print(str.charAt(i)+""+count);
}