当前位置:网站首页>2021 Yahong pen test questions
2021 Yahong pen test questions
2022-07-28 16:02:00 【PBitW】
List of articles
After the element floats ,display What is it? ?

This is usually not noticed , Not at all . I usually think , This is out of the document flow , So the width doesn't seem to take up all , That should be D 了 .
But see code :
<!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> This is a div Inside p</p>
</div>
<span style="float: right;">
aaaa<span> This is a div Inside p</span>aaa
</span>
<span style="float: right;display: inline-block;">
aaaa<span> This is a div Inside p</span>aaa
</span>
<p> This is a p</p>
</body>
</html>
The rookie found something wrong
1、block
The first two are not set display, Then the result after running , All are :

Be careful :
span Only here , stay style There is no display Of this property !
2、 unchanged
But the third one , I set it myself display, Although the settings are still displayed here display
But the difference is style Inside 
What is this block Or unchanged ?
Anyway, what the rookie found is what he said block,https://www.cnblogs.com/lmy-ms/p/6425504.html
Which of the following is not canvas Methods

This pair canvas Students who learn well should not be a problem , Anyway, I don't think I've met you in my usual project canvas, At most echarts yes canvas Written !
Students who don't know can watch :https://www.runoob.com/w3cnote/html5-canvas-intro.html
No input stay html5 The new type of

Cough cough cough , The novice is wrong about this question , Should be B (file), Others are new , Here you can see the blog written by the novice :https://blog.csdn.net/langwang_100/article/details/107515920 , Anyway, rookies feel so much , I can't remember , Just search it when you use it ?
p.list pan and p:last-child span Whose weight is high
The novice forgot the content of his blog when taking the exam , Come back and have a look , Fortunately, I chose the right one 
Priority relation : inline style > ID Selectors > Class selectors = Attribute selector = Pseudo class selector > tag chooser = Pseudo element selector
See my blog for details :
https://blog.csdn.net/langwang_100/article/details/107768098
https://blog.csdn.net/langwang_100/article/details/108206686
[“1”,“2”,“3”].map(parseInt)

reason :
Be careful :
there index Represents the subscript of the array ,array Is the array itself !
Reference documents :
Array.prototype.map() Documents
Yes http Incorrect statement

The answer is A, Tell the truth , Who can remember so many numbers , I know about it 1–> Information ,2–> success ,3–> Redirect ,4–> Client error ,5–> Server error ,
For details, see :https://www.runoob.com/tags/html-httpmessages.html
B,C See you for the answer :
https://blog.csdn.net/qq_32534441/article/details/89639266
https://blog.csdn.net/weixin_42164539/article/details/104716843
D The rookie originally thought https Very complicated , It turned out to be http Encrypted !
Code running problem

In fact, this problem is a simple problem of variable assignment and scope , because catch Yes. x, So when assigning values in functions , What is assigned is a local variable x, Not the outside x, So there is no way to visit outside , So outside x still undefined, And inside y Because it is assigned , So when printing 2!
hasOwnProperty and set.has

answer :C
MDN Official website :
Be careful :
Here is the property to be detected String String form , So whether it's numbers or strings , Will be converted to a string !
set:
边栏推荐
- JS bidirectional linked list 01
- 如何快速接入统一的认证鉴权体系
- Samba Server Setup Guide
- Learning methods 123
- How to measure the vibrating wire sensor by vibrating wire acquisition module?
- shell编程规范与变量
- Software architecture and design (x) -- Architecture Technology
- Learn about the native application management platform of rainbow cloud
- Proportional solenoid valve control valve 4-20mA to 0-165ma/330ma signal isolation amplifier
- js 队列
猜你喜欢

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

虚拟机之NAT模式下设置静态IP

js 队列

激光测距仪非接触式地表裂缝监测仪

Shell programming specifications and variables

比例电磁阀控制阀4-20mA转0-165mA/330mA信号隔离放大器
![[live broadcast reservation] a new challenge under the evolution of data architecture - Shanghai railway station](/img/46/2a641ea3a0c805ff2377253a824a04.png)
[live broadcast reservation] a new challenge under the evolution of data architecture - Shanghai railway station

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

How to quickly access the unified authentication system

Shell编程规范与变量
随机推荐
Open light input / relay output rs485/232 remote data acquisition IO module ibf70
js 队列
热敏电阻PT100,NTC转0-10V/4-20mA转换器
Software architecture and design (IX) -- component based architecture
js 链表 01
Preparing for listing in the United States? Arm announced that it would divest the Internet of things service business: the future will focus on the underlying chip design
0-75mV/0-100mV转RS485/232通讯接口MODBUS RTU采集模块IBF8
1路编码器2路DI转速测量RS485串口连接1路DO报警模块IBF151
VM501开发套件开发版单振弦式传感器采集模块岩土工程监测
学习方法123
Software architecture and design (V) -- data centric architecture
高精度绝对角度传感器应用高速度角度监测
Remote serial port server (adapter) UART to 1-wire application
Set static IP in NAT mode of virtual machine
电压转电流/电流转电压模块
Love programming
JS linked list 01
如何有效进行回顾会议(上)?
Virturalbox solves the problem of kernel driver
便携式钻孔测斜仪数据采集仪测量原理与测斜探头的连接及使用方法