css流式和彈性布局(未完)

來源:互聯網
上載者:User

標籤:

(子容器%父容器)*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流式和彈性布局(未完)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.