给一个TextView设置红色字体,应该使用以下哪种写法?()
第1题:
A.a:link{color:red}
B.a:hover{color:red}
C.a:visited{color:red}
D.a:active{color:red}
答案:C
解析:a:link :是未被访问的样式,可以在里面加很多东西,比如说去掉下划线,换颜色等功能都能在这里实现;
a:visited :是已被点击后的样式,也可以在里面加很多元素,可以去下划线,改颜色,放大等功能;
a:hover :这个是鼠标悬停的样式,是把鼠标停在超链接的位置的时候可以设置变颜色;
a:active :是能把鼠标点上去的时候,瞬间出的样式,在很多网站上都有这种样式的
第2题:
下列Applet在窗口中输出一个以坐标(100,80)为中心,长轴半径为70,短轴半径为50的椭圆。选择正确的语句填入横线处。 import java.awt.*; import java.applet.*; public class exl5 extends Applet { public void paint(Graphics g) { g. setColor (Color. RED); g. setColor (Color. GREEN);______ g. drawString(".O", 100, 80); } }
A.drawOval(30, 30, 140, 100);
B.g.drawOval(30, 30, 70, 50);
C.g.drawLine(30, 30, 140, 100);
D.g.drawOval(30, 30, 140, 100);
第3题:
下列Applet在坐标(30,50)处以黄色字体显示“你好!”。请选择正确的语句填入横线处。 import java.awt.*; import java.applet.*; public class ex27 extends Applet { public void paint<Graphics g) { g.drawString("你好", 30, 50); } }
A.setColor(Color.yellow);
B.g.setColor(Color. Yellow),
C.g.setFontColor(Color. yellow);
D.g.setColor(Color. yellow);
第4题:
在J2EE中,对于简单属性的方法: public Color getColor(){......}和 public void setColor(Color c){....} 假定color是类中的属性,在方法体内可以()
第5题:
在Activity中需要找到一个id是bookName的的TextView组件,下面哪种语句写法是正确的?()
第6题:
在J2EE中,对于简单属性的方法: public Color getColor(){…} 和public Void setColor(Color c){…} 假定color是类中的属性,在方法体内可以()
第7题:
要设置以访问过的连接颜色为红色,下列选项正确的是()。
第8题:
若要在网页中设置背景色为红色,以下标记中正确的是()
第9题:
设置鼠标移动到链接上时候文字变成红色如何设置?()
第10题:
a:link{color:red;}
a:active{color:red;}
a:visited{color:red;}
a:hover{color:red;}
第11题:
在getColor方法体内只能有一行代码:return color;在setColor方法体内只能有一行代码:this.color=c;
在在getColor方法体内只能有一行代码:return color;在setColor方法体内一定要有该行代码:this.color=c;;但还可以有其他的代码
在getColor方法体内一定要有一行代码:return color但还可以有其它代码;在setColor方法体内只能有一行代码:this.color=c;
在getColor方法内一定要有该行代码
第12题:
setTextColor(0xffff0000)
setColor(0xffff0000)
setTextColor(0xffff0000)
setColor(red)
第13题:
A.extViewtv=this.findViewById(R.id.bookName)
B.TextViewtv=(TextView)this.findViewById(R.string.bookName)
C.TextViewtv=(TextView)this.findViewById(R.id.code)
D.TextViewtv=(TextView)this.findViewById(R.id.bookName)
第14题:
下列Applet实现了在Applet窗口中绘制一个以(70,70)为圆心,50为半径,边框为绿色的圆,圆心是红色的。选择正确的语句填入下面横线处。 import java.awt.*; import java.applet.*; public class ex20 extends Applet { public void paint(Graphics g) { g.setColor(Color. GREEN); g.drawOval(20, 20, 100, 100); g.setColor(Color. RED); ______ } }
A.g.drawOval(70, 70, 70, 70);
B.g.drawRect(70, 70, 1, 1);
C.drawRect(70, 70, 1, 1);
D.g.drawLine(70, 70, 1, 1);
第15题:
以下代码完成画线功能,所画线的颜色是( )。 (1)g.setColor(Color.red.green.cyan.yellow); (2)g.drawLine(0,0,100,100):
A.red
B.green
C.yellow
D.cyan
第16题:
以下方法哪一個可以判断屏幕颜色是否彩色()。
第17题:
J2EE中,对于简单属性的方法:public Color getColor(){……}和 public void setColor(Color c){……}假定color是类中的属性,在方法体内可以()
第18题:
import java.awt.*; import java.applet.*; pulic class DrawRect extends Applet { Public void paint(Graphics g) { g.setColor(Color.red); g.drawRoundRect(150,50,50,50,20,40); g.setColor(Color.green); g.fillRoundRect(150,140,50,50,20,20); } } 根据代码,输出结果正确的有()。
第19题:
如何将颜色重设为默认值?()
第20题:
设置TextView字体的属性是:()。
第21题:
使用CSS声明一个关联样式选择器<style>div span{color:red}</style>,以下几种HTML元素中的内容可以为红色字体的是()。
第22题:
TextView tv=this.findViewById(R.id.bookName);
TextView tv=(TextView)this.findViewById(R.id.code);
TextView tv=(TextView)this.findViewById(R.id.bookName);
TextView tv=(TextView)this.findViewById(R.string.bookName);
第23题:
在getColor方法体内只能有一行代码:return color; 在setColor方法体内只能有一行代码: this.color=c;
在getColor方法体内只能有一行代码:return color; 在setColor方法体内一定有该行代码: this.color=c;但还可以有其他的代码
在getColor方法体内一定有该行代码:return color; 但还可以有其他的代码, 在setColor方法体内只能有该行代码: this.color=c;
在getColor方法体内一定要有该行代码:return color; 但还可以有其他的代码,在setColor方法体内一定有该行代码: this.color=c;但还可以有其他的代码