如何写css fixed固定定位属性的代码呢?
如何写css fixed固定定位属性的代码呢?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1。0 Transitional//EN http://www。w3。org/TR/xhtml1/DTD/xhtml1-transitional。dtdhtml xmlns=http://www。
w3。
org/1999/xhtmlheadmeta http-equiv=Content-Type content=text/html; charset=gb2312 /titleCSS固定定位/titlestyle type=text/css*{margin: 0px;padding:0px;}#all{width:500px;height:600px;background-color:#FC3;}#fixed{width:100px;height:100px;border:15px outset #f00;background-color:#9c9;position:fixed;top:30px;left:10px;}#a{width:200px;height:300px;margin-left:150px;background-color:#F9F;border:2px outset #000;}/style/headbodydiv id=alldiv id=fixed固定的容器/divdiv id=a pnbsp;/p pnbsp;/p pnbsp;/p pnbsp;/p pnbsp;/p pnbsp;/p pnbsp;/p p无定位的div容器/p/div/div/body/html。
答:详情>>