题目详情

一个DIV的外边距要求为:“上边距:2Opx、下边距:30px、左边距:40px、右边距:50px”,能够正确设置该样式的CSS语句是(  )。

  • A.margin:20px 30px 40px 50px
  • B.padding:20px 30px 40px 50px
  • C.margin:20px 50px 30px 40px
  • D.padding:20px 50px 30px 40px

正确答案及解析

正确答案
C
解析

本题考查CSS的盒子模型的知识。

设置外边距的最简单的方法就是使用margin属性;h1{margin:10px 0px 15px 5px;}这些值的顺序是从上外边距(top)开始围着元素顺时针旋转的,顺序为上右下左。

经过分析,本题选C(A选项顺序错误,外边距属性值应该为上右下左,而在选项内显示的确是上下左右;B选项属性和顺序皆错误,padding代表内间距,顺序是上右下左;D选项属性错误,padding代表内间距)。

包含此试题的试卷

你可能感兴趣的试题

单选题

Advancements in ( )have contributed to the growth of the automotive industry through the creation and evolution of self-driving vehicles.

  • A.Artificial Intelligence
  • B.Cloud Computing
  • C.Internet of Things
  • D.Big Data
查看答案
单选题

In project human resource management , ( )is not a source of power for the project manager.

  • A.referent power
  • B.expert power
  • C.reward power
  • D.audit power
查看答案
单选题

At the project establishment stage , the feasibility study mainly includes techinical feasibility analysis , ( ), operation environment feasibility analysis and other aspects of feasibility analysis.

  • A.detail feasibility analysis
  • B.opportunity analysis
  • C.economic feasibility analysis
  • D.risk analysis
查看答案
单选题

( )is a grid that shows the project resources assigned to each work package.

  • A.Stakeholder engagement assessment matrix
  • B.Requirements traceability matrix
  • C.Probability and impact matrix
  • D.Responsibility assignment matrix
查看答案
单选题

Xinhua News Agency reported in January 2022,Chian will further promote the developmet of a digital economy during the 14th Five-Year Plan eriod(2021-2025). The plan also emphasized industrial ( )transformation.

  • A.digital
  • B.networking
  • C.intelligentize
  • D.informatization
查看答案

相关题库更多 +