已采纳回答 / 莫道相思尽
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-...
2016-12-23
最新回答 / Hbrsql
.left{ position:absolute; }你的代码中这个冒号":"使用的不是英文标点,造成.left DIV没有绝对定位,还处于正常流中, .main DIV才换行显示.重新输入一个正确的":"即可.
2016-12-20
最赞回答 / Hbrsql
position: absolute: >>position: absolute;margin: 0 310 0 210 background:#9CF >>margin: 0 310px 0 210px; background:#9CFposition:absolute right 0 top 0; >>>position:absolute; right:0; top:0;请规范写法.自己写的代码如果出不来效果应该自己仔细检查一遍.
2016-12-19
已采纳回答 / ArrayZoneYour
margin属性其实是一个简写,它的展开式是margin-top, margin-right, margin-bottom, margin-left所以margin参数是四个的时候是顺时针设定各个margin的值.
2016-12-18
最新回答 / 大涧涧dry
这位同学针对你提的模糊问题,我有几点建议:第一:问问题的时候给完整的代码,然后你写想要做出啥效果,实际出现的效果是啥。第二:你的问题我给的回答是:没有加float
2016-12-09
已采纳回答 / nishigui
我也出现了同样的问题,但是这个代码我在dw上写了,都显示出来了,所以我觉得应该不是代码的问题。遇到这种问题找不到为啥的先换个地方写一下,再说吧。望采纳。
2016-12-02
已采纳回答 / 慕勒4413983
.main{width:100%;height:600px;background:#00F; position:relatve}.left{ width:200px;height:600px;background:#3CC; ;top:0; left:0}.right{width:80%;height:600px;background:#F33; margin-left:210px;position:absolute}可以回顾一下相对定位与绝对定位
2016-12-01
已采纳回答 / Hbrsql
"margin-left:210px;"可以使.right DIV右移210px,已达到实践的效果.position:abosolute;right:0;top:100px;也能达到同样的效果.要实现同一种效果,可能有好多种方式,选择自己认为较优的即可.
2016-12-01