当前位置:网站首页>Responsive mobile web test questions
Responsive mobile web test questions
2022-07-04 06:41:00 【HHppGo】
The first question is
Of the following options bootstrap The classes in that allow elements to be hidden only on small screen devices are ( B )
A: hidden-xs
B: hidden-sm
C: hidden-md
D: hidden-lg
analysis :
hidden-xs
It's a super small screen ;hidden-sm
It's a small screen ;hidden-md
It's the middle screen ;hidden-lg
It's a big screen
The second question is
The following options can clear the left and right of the parent container 15px The class of inner margin is ( D )
A: container
B: col-md-1
C: container-fluid
D: row
analysis :
container
Is to set the layout effect ;col-md-1
It is displayed in one line on the middle screen 12 individual ;container-fluid
It's a barrier effect ;row
Is to eliminate the parent container around 15px The inner margin of
Third question
The following about bootstrap Usage description of error Yes. ( C )
A: Bootstrap The downloaded package contains css,js,font Folder
B: <!–[if lt IE 9]> This is for the lower version ie Browser compatible processing
C: Bootstrap It can only be imported into the project in the form of local files downloaded by the browser analysis :( adopt cdn Online acceleration is also ok )
D: The corresponding bootstrap.css You can directly use some of the classes it provides
Fourth question
On the super large screen, each line displays 4 Elements , On the medium screen 3 Elements , The small screen shows 2 Elements , On the super small screen 1 Elements . The following descriptions of class names under different screens are correct ( A )
A:
<div class="row">
<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">1</div>
</div>
B:
<div class="row">
<div class="col-lg-4 col-md-3 col-sm-2 col-xs-1">1</div>
</div>
C:
<div class="row">
<div class="col-lg-3 col-md-4 col-sm-2 col-xs-1">1</div>
</div>
D:
<div class="row">
<div class="col-lg-3">1</div>
</div>
analysis :
col-xs
It's a super small screen ;col-sm
It's a small screen ;col-md
It's the middle screen ;col-lg
It's a big screen ; use 12 Divide by the number of elements to be displayed in each row , That's the next number
Fifth question
<style> @media screen and (min-width: 320px) {
html {
font-size: 50px; } } @media screen and (min-width: 640px) {
html {
font-size: 100px; } } .top {
height: 1rem; font-size: .5rem; background-color: green; color: #fff; text-align: center; line-height: 1rem; } </style>
</head>
<body>
<div class="top"> The shopping cart </div>
</body>
In the case above top The element has a screen width of 500px and 700px when What are the font sizes ( D )
A: 25px 25px
B: 50px 50px
C: 16px 16px
D: 25px 50px
analysis :
As shown in the figure :min-width:320px intend Greater than or equal to 320px,( namely : The minimum is 320px);
Empathy ,max-width: So-and-so px intend Less than or equal to px,( namely : The biggest is so and so px)
In the figure :>=640px Style handle>=320px In the style >=640 Part of
For coverage.
therefore , The screen width is500px
Ofhtml font size
yesfont-size:50px
The screen width is700px
Ofhtml font size
yesfont-size:100px
Again because rem In order tohtml Size
For a unit of , namely :1rem = 1 * HTML Size
therefore , The final results : usehtml font size
Multiply by0.5
, That's the final answer .
notes :.5rem == 0.5rem
Sixth question
About Bootstrap The option to error Yes. ( C )
A: Bootstrap The initialization code of uses normalize.css
B: Bootstrap Mobile first , To ensure proper drawing and touch screen zooming , Need to be in head Add viewport Metadata tags
C: On the medium screen , Use .col-md- Express ,.container Maximum width 1170px
D: Column offset ,col-*-offset- The implementation principle is to use margin-left Implemented
analysis :
Medium screen , The corresponding container width is970px
Question seven
In the following code , Which one can use media query to determine the width (768px~992px) And introduce corresponding css file ( C )
A: <link rel="stylesheet" href="one.css">
B: <link rel="stylesheet" media="screen and ( min-width:992px )" href="two.css">
C: <link rel="stylesheet" media="screen and ( max-width:992px ) and ( min-width:768px )" href="three.css">
D: <link rel="stylesheet" media="screen and ( min-width:992px ) and ( max-width:768px )" href="three.css">
analysis :
max-width: 992px
intend Viewport width<=992px;
min-width: 768px
intend Viewport width>=768px;
The eighth question [ multi-select ]
bootstrap Class col-sm-4 describe correct Yes. (BC )
A: It only works on small screen devices
B: Effective on small screen equipment and above
C: When effective, the width accounts for 1/3
D: When effective, the width accounts for 1/4
Question 9 [ multi-select ]
The following description of the layout container correct Yes. (ABC )
A: Bootstrap Two container style classes are predefined :.container, .container-fluid
B: container class , The screen range has been processed through media query
C: container-fluid, The width is 100% , Suitable for separate mobile terminal development
D: container Class is not responsive
Question 10 [ multi-select ]
The following is a description of the grid system correct Yes. ( ABC )
A: The lattice system is used to pass through a series of rows (row) And column (column) To create a page layout
B: grid system , Along with the screen or the viewport (viewport) Increase in size , The system will automatically divide it into the most 12 Column
C: Screen change ,container change ,12 Every change in equal parts , The size of our interface elements is set according to each equal part , Then the screen adaptation is realized
D: The grid system is container class
边栏推荐
- MySQL 45 lecture learning notes (XIV) count (*)
- The cloud native programming challenge ended, and Alibaba cloud launched the first white paper on application liveliness technology in the field of cloud native
- 【GF(q)+LDPC】基于二值图GF(q)域的规则LDPC编译码设计与matlab仿真
- MySQL learning notes 3 - JDBC
- Code rant: from hard coding to configurable, rule engine, low code DSL complexity clock
- 2022 Xinjiang's latest eight members (Safety Officer) simulated examination questions and answers
- 17-18. Dependency scope and life cycle plug-ins
- STC8H开发(十二): I2C驱动AT24C08,AT24C32系列EEPROM存储
- MySQL installation and configuration
- what the fuck! If you can't grab it, write it yourself. Use code to realize a Bing Dwen Dwen. It's so beautiful ~!
猜你喜欢
GoogleChromePortable 谷歌chrome浏览器便携版官网下载方式
图的底部问题
Download kicad on Alibaba cloud image station
MySQL installation and configuration
Arcpy 利用updatelayer函数改变图层的符号系统
[backpack DP] backpack problem
Abap:ooalv realizes the function of adding, deleting, modifying and checking
24 magicaccessorimpl can access the debugging of all methods
Bicolor case
Mysql 45讲学习笔记(七)行锁
随机推荐
2022 Xinjiang's latest eight members (Safety Officer) simulated examination questions and answers
【问题记录】03 连接MySQL数据库提示:1040 Too many connections
tars源码分析之9
Tsinghua University product: penalty gradient norm improves generalization of deep learning model
Which water in the environment needs water quality monitoring
C réaliser des jeux de serpents gourmands
Google Chrome Portable Google Chrome browser portable version official website download method
Tar source code analysis Part 3
2022年,或許是未來10年經濟最好的一年,2022年你畢業了嗎?畢業後是怎麼計劃的?
云原生——上云必读之SSH篇(常用于远程登录云服务器)
The solution of win11 taskbar right click without Task Manager - add win11 taskbar right click function
Option (024) - do all objects have prototypes?
Redis面试题集
Tree DP
What is a spotlight effect?
The width of the picture in rich text used by wechat applet exceeds the problem
MySQL 45 lecture learning notes (XIII) delete half of the table data, and the table file size remains the same
Appium基础 — APPium安装(二)
Tar source code analysis Part 2
Mysql 45讲学习笔记(十四)count(*)