標籤:
(子容器%父容器)*100
png透明
ie6中
filter:progid:DXImageTransfornm.Microsoft.AlphaImageLoader(
src=‘路徑‘,sizingMethod=‘crop‘);
)
behavior:url(iepngfix.htc)
讓一個div水平、垂直置中
一、流式布局兩個要點:
1,在link中加入media
<link src="global.css" />
<link src="ipad.css " media="(max-width:980px) and (min-width:600px)" />
<link src="mobile.css " media="(max-width:599px)" />
2,把精確的像素改為百分比,並使用box-sizing:border-box。
盒模型以border為準。
解決流式布局中兩個水平盒子各分50%的寬度
二、在頁面配置中小的點
在上面要點基礎上也有一些小的點用來精細的設定頁面
甚至padding也可以使用百分比。
border-radius
-webkit-linear-graient();
用js檢測使用者使用裝置
使用device.js檢測瀏覽器
device.ipad()
device.mobile()
device.iphone()
device.android()
device.tablet()
device.portait()
device.landscape()
http://qianduanblog.com/post/css-learning-16-css3-flex-responsive-design.html
http://qianduanblog.com/post/css-learning-18-css3-flex-responsive-design-example.html
http://www.kancloud.cn/zhongzhong/webtop/106237
http://www.kancloud.cn/zhongzhong/webtop/106238
http://www.ithao123.cn/content-1752271.html
css流式和彈性布局(未完)