2.使用font-family设置字体时,以下书写正确的是()
A: body{font-family:Arial,"微软雅黑","宋体","黑体";}
B: body{font-family:"微软雅黑","宋体","黑体",Arial;}
C: body{font-family:"TimesNewRoman";}
D: body{font-family:TimesNewRoman;}
A: body{font-family:Arial,"微软雅黑","宋体","黑体";}
B: body{font-family:"微软雅黑","宋体","黑体",Arial;}
C: body{font-family:"TimesNewRoman";}
D: body{font-family:TimesNewRoman;}
举一反三
- 执行以下代码,运行结果defsplit(s):returns.split("t")s="Happybirthdaytoyou!"print(split(s)) A: 运行出错 B: ["&quot","Happy&quot",null,"&quot","birthday&quot",null,"&quot","to&quot",null,"&quot","you!&quot"] C: ["Happybir","&nbsp","hday","&nbsp","oyou!"] D: ["Happy","&nbsp","bir","&nbsp","hday","&nbsp","o","&nbsp","you!"]
- 10.关于行内式引入CSS样式表,以下书写正确的是() A: <pstyle=font-size:12px;color:red;>段落文本</p> B: <pstyle="font-size:12px,color:red;">段落文本</p> C: <pstyle="font-size:12px;color:red;">段落文本</p> D: <pstyle="font:12px;color:red;">段落文本</p>
- 定义变量:int x;float y;则以下正确的是( )。 A: scanf("%f%f",&x,&y) B: scanf("%f%d",&x,&y) C: scanf("%d%f",&x,&y) D: scanf("%5.2f%2d",&x,&y)
- 设有以下变量定义float a; int i;选择正确的输入语句是( ); A: scanf ("%f%d", a,i); B: scanf ("%6.2f%d", &a,&i); C: scanf ("%f%d", &a,&i); D: scanf ("%f%u", &a,&i);
- 如有定义语句float *p,a;,则正确给变量p和a赋值的程序段是( ) A: scanf("%f",a); *p=&a; B: scanf("%f",&p); *p=&a; C: scanf("%f",p); a=&p; D: scanf("%f",&a); p=&a;