当前位置:网站首页>2021 亚鸿笔试题
2021 亚鸿笔试题
2022-07-28 14:51:00 【PBitW】
文章目录
元素浮动后,display是什么?

这个平时不注意,根本不会。一般都会想,这都脱离文档流了,那么宽度啥的也好像没有占满全部了,那应该就是D了。
但是见代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style> div{
float: left; } </style>
</head>
<body>
<div>
<p>这是div里面的p</p>
</div>
<span style="float: right;">
aaaa<span>这是div里面的p</span>aaa
</span>
<span style="float: right;display: inline-block;">
aaaa<span>这是div里面的p</span>aaa
</span>
<p>这是p</p>
</body>
</html>
菜鸟发现有点问题
1、block
前面两个没设置display,那么运行后其结果,都是:

注意:
span只能在这里看,在style里面看是没有display这个属性的!
2、不变
但是第三个,我自己设置了display,虽然这里依旧显示的是设置的display
但是不同点是style里面
那这样到底是block还是不变呢?
反正菜鸟搜到的是说得block,https://www.cnblogs.com/lmy-ms/p/6425504.html
下面哪种不是canvas的方法

这个对canvas学得好的同学应该不成问题,反正我是感觉平时做项目没有碰见过canvas,最多就知道echarts是canvas写的!
不知道的同学可以看:https://www.runoob.com/w3cnote/html5-canvas-intro.html
不是input在html5的新类型的是

咳咳咳,这个题菜鸟看错了,应该是B (file),其它都是新加的,这里可以看菜鸟写的博客:https://blog.csdn.net/langwang_100/article/details/107515920 ,反正菜鸟是感觉那么多,我是记不住的,使用的时候搜一下不就好了?
p.list pan 和 p:last-child span谁的权重高
菜鸟考试的时候忘记了自己写的博客里面的内容了,回来一看,还好选对了
优先级关系:内联样式 > ID 选择器 > 类选择器 = 属性选择器 = 伪类选择器 > 标签选择器 = 伪元素选择器
具体见我的博客:
https://blog.csdn.net/langwang_100/article/details/107768098
https://blog.csdn.net/langwang_100/article/details/108206686
[“1”,“2”,“3”].map(parseInt)

原因:
注意:
这里的index表示的是数组的下标,array就是数组本身!
对http说法不正确的

答案是A,说实话,那么多数字谁记得住呀,大致就知道 1–>信息,2–>成功,3–>重定向,4–>客户端错误,5–>服务器错误 ,
详情见:https://www.runoob.com/tags/html-httpmessages.html
B,C答案见:
https://blog.csdn.net/qq_32534441/article/details/89639266
https://blog.csdn.net/weixin_42164539/article/details/104716843
D菜鸟原本以为https很复杂,原来就是http加密了!
代码运行题

其实这个题就是一个简单的变量赋值和作用域的问题,因为catch的是x,所以函数里面赋值时,赋值的是局部变量x,而不是外面的x,所以外面没法访问,所以外面的x还是undefined,而里面的y因为被赋值了,所以打印时是2!
hasOwnProperty和set.has

答案:C
MDN官网:
注意:
这里是要检测属性的String字符串形式,所以不管是数字还是字符串,都会转换为字符串!
set:
边栏推荐
- [channel attention mechanism] senet
- Knowledge points qwer
- 数据实时反馈技术
- How to compress and decompress ramdisk.img
- 屏下指纹价格战再起,二线厂商今年有望拿下30%市场?
- Proportional solenoid valve control valve 4-20mA to 0-165ma/330ma signal isolation amplifier
- Framework定制系列(一)-----SystemUI NavigationBar导航栏上滑返回Launcher
- Zhaoqi scientific innovation and entrepreneurship competition platform, activity roadshow, investment and financing docking
- How to build opengrok code server
- 1路编码器2路DI转速测量RS485串口连接1路DO报警模块IBF151
猜你喜欢

1路编码器2路DI转速测量RS485串口连接1路DO报警模块IBF151

DNS域名解析协议

活动速递| Apache Doris 性能优化实战系列直播课程初公开,诚邀您来参加!

Open light input / relay output rs485/232 remote data acquisition IO module ibf70

2路DI高速脉冲计数器1路编码器转Modbus TCP有线无线模块IBF161

Software architecture and design (VI) -- hierarchy

12V脉冲转速测量转24V电平信号转换变送器

IFD-x 微型红外成像仪(模块)的温度测量和成像精度

js 链表 02

Docker container implements MySQL master-slave replication
随机推荐
js 队列
[channel attention mechanism] senet
The price war of off screen fingerprints has resumed, and second-line manufacturers are expected to win 30% of the market this year?
Proportional solenoid valve control valve 4-20mA to 0-165ma/330ma signal isolation amplifier
28.55亿元!青岛芯恩增资完成:兴橙集电成第一大股东,持股57.10%
FTP文件传输协议
Samba Server Setup Guide
Note: numerical accumulation animation
Pyqt5 rapid development and practice 5.2 container: load more controls
js 双向链表 01
多用型混合信号8AI/4DI/DO转串口RS485/232MODBUS采集模块IBF30
【直播预约】数据架构演进下的新挑战——上海站
Flutter中是使用RxDart代替Stateful
FTP file transfer protocol
为赴美上市做准备?Arm宣布将剥离物联网服务业务:未来将聚焦芯片底层设计
华为全球员工总数创新高:19.4万人,研发人员占比近50%
突发!微星CEO江胜昌坠楼身亡
js 链表 01
Software architecture and design (IV) -- data flow architecture
Encoder high speed pulse counter Modbus RTU module ibf150