[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fuc9eo3bWtUfSdOwihJIVTd_Xg1uv9QFpkuQi2xKHLw4":3},{"id":4,"source":5,"question":6,"options":7,"answer":12,"related":13,"type":21,"origin":100,"createTime":23},181220596,"v1","要使一个元素在正常文档流中,但可以通过设置偏移量来微调其位置,并且不影响其他元素的布局,应该使用( )",[8,9,10,11],"position: relative","position: absolute","position: fixed","position: sticky",[],[14,24,34,44,48,59,69,75,85,93],{"id":15,"source":5,"question":16,"options":17,"answer":19,"related":20,"type":21,"origin":22,"createTime":23},181220593,"一个元素设置了 position: relative; width: 200px; height: 100px;,在它内部有一个子元素设置了 position: absolute; width: 50px; height: 50px; left: 50%; top: 50%;,子元素的左上角在父元素中的位置是( )",[18,18,18,18],"",[],[],0,null,"2025-04-01T11:56:14+08:00",{"id":25,"source":5,"question":26,"options":27,"answer":32,"related":33,"type":21,"origin":22,"createTime":23},181220594,"当一个元素设置了 position: relative; 且有子元素时,子元素设置 position: absolute; 后,若子元素的偏移量超出了父元素的范围,子元素会( )",[28,29,30,31],"显示在超出的位置,超出部分可能会在页面其他地方显示","回到文档流中原来的位置","被隐藏","仍然在父元素内,不会超出",[],[],{"id":35,"source":5,"question":36,"options":37,"answer":42,"related":43,"type":21,"origin":22,"createTime":23},181220595,"当一个元素设置了 position: sticky;,以下关于它的描述错误的是( )",[38,39,40,41],"它会脱离文档流","它需要指定 top、left、bottom 或 right 中的至少一个属性才会生效","它在一定范围内表现得像相对定位,超出范围表现得像固定定位","在粘性定位过程中,元素的包含块是它最近的可滚动祖先元素",[],[],{"id":4,"source":5,"question":6,"options":45,"answer":46,"related":47,"type":21,"origin":22,"createTime":23},[8,9,10,11],[],[],{"id":49,"source":5,"question":50,"options":51,"answer":56,"related":57,"type":21,"origin":22,"createTime":58},181220597,"CSS 中 position 属性的默认值是( )",[52,53,54,55],"absolute","fixed","relative","static",[],[],"2025-04-01T11:47:47+08:00",{"id":60,"source":5,"question":61,"options":62,"answer":67,"related":68,"type":21,"origin":22,"createTime":23},181220598,"当多个设置了 position: relative; 的元素重叠时,z - index 值大的元素( )",[63,64,65,66],"会覆盖 z - index 值小的元素","显示在下方","显示在上方","显示顺序与 z - index 无关",[],[],{"id":70,"source":5,"question":71,"options":72,"answer":73,"related":74,"type":21,"origin":22,"createTime":23},181220599,"以下哪种定位方式适合制作一个可以跟随页面滚动的侧边栏导航?( )",[11,10,8,9],[],[],{"id":76,"source":5,"question":77,"options":78,"answer":83,"related":84,"type":21,"origin":22,"createTime":58},181220600,"一个元素设置了 position: relative;,它的子元素设置了 position: absolute;,子元素的偏移量是相对于( )",[79,80,81,82],"浏览器窗口","该元素(父元素)","文档的起始位置","子元素自身正常位置",[],[],{"id":86,"source":5,"question":87,"options":88,"answer":91,"related":92,"type":21,"origin":22,"createTime":23},181220601,"一个元素设置了 position: sticky; left: 20px;,当页面滚动时,该元素在粘性定位过程中,其包含块是( )",[79,89,81,90],"父元素","它最近的可滚动祖先元素",[],[],{"id":94,"source":5,"question":95,"options":96,"answer":98,"related":99,"type":21,"origin":22,"createTime":58},181220602,"以下哪种定位方式可以让元素在 z 轴方向上进行层叠排序( )",[52,97,55,54],"以上都可以,只要设置 z - index 属性",[],[],{"courseName":101,"courseImg":102,"workName":103,"workId":104,"count":105,"courseId":106},"24252web前端","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F9c1e48361b00f3ee2086f4e259ed792b.jpg","6.2","work_42391023",39,"f200a5c3360b035ba65aff01a6a29dcc"]