使用位置的最大弊端是什么:绝对& Float&上方/上方边距+填充,如果网站固定宽度(970px),是否居中? [英] What is the biggest cons to use position: absolute & top/left over Float & margin+padding, If site is fixed width (970px), centered?

查看:74
本文介绍了使用位置的最大弊端是什么:绝对& Float&上方/上方边距+填充,如果网站固定宽度(970px),是否居中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用CSS定位的最大缺点是什么(从Dreamweaver AP Div )获取所有内容,而不是 Float 获取固定宽度,居中的网站?

What is the biggest disadvantage to use CSS positioning(From Dreamweaver AP Div) for everything instead Float for fixed width, centered website?

如果我不在意


  • 移动用户

  • 小屏幕用户(小于1024
    px屏幕大小)

但是我很关心


  • 屏幕阅读器用户

  • 所有浏览器用户(包括IE6)

推荐答案

不是一个或两个都是...浮动在某些情况下是有利的,在某些情况下是绝对好的,因此对于其他情况是绝对的您的设计可能需要同时使用两者。如果您认真使用CSS,建议您购买并阅读 http://www.transcendingcss.com/

It's not either/or it's both... Float is good for some situations and position:absolute for others, therefore you may need to use both for your design. If you are serious about using CSS I suggest you buy and read this book http://www.transcendingcss.com/

这篇关于使用位置的最大弊端是什么:绝对& Float&上方/上方边距+填充,如果网站固定宽度(970px),是否居中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆