ITA-CSS

三种插入CSS的方法

  • 外部样式表(External style sheet)
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
  • 内部样式表(Internal style sheet)
<head>
<style>
hr {color:sienna;}
p {margin-left:20px;}
body {background-image:url("images/back40.gif");}
</style>
</head>
  • 内联样式(Inline style)
<p style="color:sienna;margin-left:20px">这是一个段落。</p>

不要在属性值与单位之间留有空格(如:"margin-left: 20 px" ),正确的写法是 "margin-left: 20px" 。


Which definition(s) of CSS is/are not correct

  • The definition method of the class style is point + style name
  • The #id selector styles the element with the specified id.
  • Space is used between attributes when declaring the definition.(声明定义时在属性之间使用空格)
  • HTML tag. style name: refers to that only specified tag can reference it.

CSS uses the () XHTML tag to build a page layout

  • <dir>
  • <div>
  • <dis>
  • <dif>

In HTML, which of the following statements about text and font attributes in CSS styles is/are not correct?

  • Text-align is used to set the alignment of the text
  • Font-size is used to set the size of the text font
  • Font-type is used to set the type of font(Font-type用于设置字体类型)
  • Font-weight is used to set the thickness of the font

font-type 没有该属性。

font-style 属性定义字体的风格,斜体、倾斜或正常字体。


Which of the following statements about overlapping styles is/are incorrect?

  • If two elements are normal flows, the latter element is by default with higher level than the previous element level and allows subsequent elements to pass through.(如果两个元素是正常流,则默认情况下,后一个元素的级别比前一个元素的级别高,并允许后续元素通过。)
  • If two elements are block-level elements, the text is with higher level than the background.(如果两个元素是块级元素,则文本的级别高于背景)
  • Like the behavior of inline block, the text is with higher level than the background, and also the previous element is with higher level than the latter element level. (像内联块的行为一样,文本的级别高于背景,并且上一个元素的级别也高于后一个元素的级别)
  • If it is an inline or inline block, the background is with higher level than the text. (如果是内联或内联块,则背景的级别比文本高)

In HTML, which should be the height of the actual placeholder of the box model ?

  • height attribute+padding-top+padding-bottom
  • height attribute+padding-top+padding-bottom+border-top+border-bottom
  • height attribute+margin-top+margin-bottom+border-top+border-bottom
  • height attribute+padding-top+padding-bottom+border-top+border-bottom+ margin-top+margin-bottom

盒模型的实际高度不包含margin


Which of the following statement(s) about box model in CSS is not correct?

  • Box model consists of the basis of page layout, which includes the margins, borders, padding, and the width and height of the elements
  • Border (border) represents the width of the box shell itself
  • Margin represents the distance between the content and the border
  • Padding represents the distance between the content and the border

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值