a標(biāo)簽內(nèi)字體取消變色和下劃線:
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
overflow:規(guī)定當(dāng)內(nèi)容溢出元素框時(shí)發(fā)生的事情
visible:默認(rèn)值。內(nèi)容不會被修剪愿待,會呈現(xiàn)在元素框之外铜秆。
hidden:內(nèi)容會被修剪,并且其余內(nèi)容是不可見的怠堪。
scroll:內(nèi)容會被修剪弛饭,但是瀏覽器會顯示滾動條以便查看其余的內(nèi)容密幔。
auto:如果內(nèi)容被修剪富拗,則瀏覽器會顯示滾動條以便查看其余的內(nèi)容。
inherit:規(guī)定應(yīng)該從父元素繼承 overflow 屬性的值
clip :默認(rèn)值 鸣戴。不顯示省略標(biāo)記(...)啃沪,而是簡單的裁切.
ellipsis: 當(dāng)對象內(nèi)文本溢出時(shí)顯示省略標(biāo)記(...).這三個(gè)一般連用
{white-space:nowrap;強(qiáng)制不換行
overflow:hidden;超出部分隱藏
text-overflow:ellipsis;顯示。窄锅。创千。
flex-start
各種居中
:http://www.cnblogs.com/2050/p/3392803.html
一個(gè)關(guān)于布局非常好的鏈接:http://zh.learnlayout.com/position.html
關(guān)于居中:https://juejin.im/entry/591dc015da2f60005d25e6b0
還是居中:https://github.com/Arisons/css-center/blob/master/16%E7%A7%8D%E6%96%B9%E6%B3%95%E5%AE%9E%E7%8E%B0%E6%B0%B4%E5%B9%B3%E5%B1%85%E4%B8%AD%E5%9E%82%E7%9B%B4%E5%B1%85%E4%B8%AD.md
再居中:http://ife.baidu.com/note/detail/id/1085
flex的集中:http://www.cnblogs.com/coco1s/p/4444383.html
css3鏈接:https://www.w3cschool.cn/css3/fyralfln.html
設(shè)置z-index 的時(shí)候一定記得加上position屬性,z-index是看父元素的入偷。
ios下bootstarp模態(tài)框失效追驴,在按鈕外面加一個(gè)a標(biāo)簽 <a href=" "? onclick="return false";data-toggle='modal' data-target='#cancelModel'></a>
ios下click失效用touchstart代替
叉的畫法:
a{
display:block;
width:0.45rem;
height:0.03rem;
background:rgb(221,119,34);
line-height:0;
font-size:0;
vertical-align:middle;
-webkit-transform:rotate(45deg);
}
a:after{
content:'/';
display:block;
width:0.45rem;
height:0.03rem;
background:rgb(221,119,34);
-webkit-transform:rotate(-90deg);
}
css3各種在線演示:http://www.css88.com/tool/css3Preview/Box-Shadow.html
邊框陰影演示:http://blog.csdn.net/freshlover/article/details/7610269