css margin
塌陷的
body
元素下的第一個標(biāo)簽,如果設(shè)置了margin-top
的值,發(fā)現(xiàn)整個body 都有margin-top
的值了蚜点。
html,body{height:100%}
這個代碼,比較有用而账。
這個博客有比較詳細(xì)的介紹:
https://www.cnblogs.com/wangjiaojiao/p/4659429.html
CSS:line-height:150%與line-height:1.5的真正區(qū)別是什么因篇?
參見: https://www.zhihu.com/question/20394889
[data-dpr="2"]
用法
正確用法:
[data-dpr="2"] .dropload-up,[data-dpr="2"] .dropload-down {
font-size: 24px;
}
錯誤用法:
[data-dpr="2"] .dropload-up, .dropload-down {
font-size: 24px;
}
.dropload-down
是沒有[data-dpr="2"]
的效果的泞辐。
ss3屬性column知多少
http://www.cnblogs.com/xinjie-just/p/5953386.html
自己在手機(jī)端 設(shè)定 網(wǎng)頁頂部的專題欄的寬度
.tab .item {
display: inline-block;
flex-wrap: nowrap;
text-align: center;
color: #333;
height: pxTorem(42px);
text-decoration: none;
/*overflow: scroll;*/
// 間隙自己設(shè)置笔横, margin控制無效的
// margin: 1px;
@include font-dpr(12px, 42px);
//width: 100%;
width: 3rem;
//background-color: yellow;
white-space: nowrap;
flex: auto;
}
.tab .item
的 父元素指定:
column-rule-color: rgb(192, 56, 78);
-webkit-column-rule-color: rgb(192, 56, 78);
column-rule-width: .2rem;
-webkit-column-rule-width: .2rem;
column-rule-style: solid;
-webkit-column-rule-style: solid;