前端学习-凯发k8官方网
前端学习-试卷 1(满分100 20,90分及格)
一、填空题(每题4分,共20分):
二、选择题(每题4分,共同20分):
a. jpg
b. gif
c. png8
d. png24
//透明度!=透明度0//只有png24
//gif png8都是不带阿尔法通道的
- ( c ) 下列选项哪个为群组选择器:
 
a. div > span >p{ ... }
b. div #span #p{ ... }
c. div, span, p{ ... }
d. div .span .p{ ... }
a. 需要清除浮动与否
b. 独占一行与另起一行
c. 高宽属性有效与否
d. 与相邻元素在同一行与否
a. section
b. article
c. label
d. blockquote
//html有默认ib ,所有表单元素都是默认ib //c是表单元素
a. overflow: hidden;
b. display: none;
c. visibility: hidden;
d. text-indent: -100%;
//a 隐藏溢出部分 //b隐藏 c可视区域可见与否,占位。
三、是非题(每题4分,共20分):
四、应用题(每题10分,共40分):
. .clearfix:before,.clearfix:after { content:""; display:table; };
.clearfix:after { clear:both; overflow:hidden; } ;
.clearfix { zoom:1; }/* for ie6 & ie7 */
1.
2. 默认情况下块级元素宽度自动填满其父元素宽度,行内元素
- 补充代码,使得容器内的多行文字上下左右居中显示:
 
html:
css:
div{
display: table;
}
p{
[补充代码]
}
补充代码:display: table-row;
div{
width: auto;
height: none;
line-height: 1;
text-align: justify;
display: table-caption;
position: none;
visibility: show;
verticle-align: center;
list-style: point;
}
改正:
height:0;
position:static;
visibility: visible;
list-style:: disc;
cursor: point;
五、附加题(每题10分,共20分):
13. }
14. .a{
18. }
19. .b{
23. }
24. @-webkit-keyframes show{
34. }
35.
40.
42. 编写一个表单,要求如下:
1). 点击按钮自动提交
2). 表单请求类型为post
3). 表单提交参数:account、password、captcha
4). 使用html5自带属性校验元素是否为空
转载于:https://www.cnblogs.com/eveblog/p/4728062.html
总结
- 上一篇:
 - 下一篇: