跨域安全問題
> Font from origin 'http://idcbgp.cn' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
> Font from origin 'http://idcbgp.cn' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
2014-12-16
:target:目標(biāo)選擇器,用來匹配頁面uri的某個標(biāo)識符的目標(biāo)元素
2014-12-14
這有點厲害的趕腳,我做Web開發(fā)這么久竟然沒寫出來。慚愧??!下面貼出完整代碼,請先思考,再看下面代碼
/*制作導(dǎo)航分隔線效果*/
.nav li::before,
.nav li::after{
content:"";
position:absolute;
top:14px;
height: 25px;
width: 1px;
}
/*制作導(dǎo)航分隔線效果*/
.nav li::before,
.nav li::after{
content:"";
position:absolute;
top:14px;
height: 25px;
width: 1px;
}
2014-12-13
text-shadow:x-offset y-offset blur color
x:水平偏移距離
y:垂直偏移距離
blur:模糊距離,不能為負值
color:模糊色
x:水平偏移距離
y:垂直偏移距離
blur:模糊距離,不能為負值
color:模糊色
2014-12-13
span 標(biāo)簽不能旋轉(zhuǎn),它是內(nèi)聯(lián)標(biāo)簽。是不是
2014-12-10
border-radius是向元素添加圓角邊框。
border-radius的值不僅能用px單位,你還可以用百分比或者em,但兼容性目前還不太好。
實心上半圓:
div{height:50px;/*是width的一半*/width:100px;background:#9da;border-radius:50px 50px 0 0;/*半徑至少設(shè)置為height的值*/}
實心圓:
div{
height:100px;/*與width設(shè)置一致*/width:100px;background:#9da;border-radius:50px;/*四個圓角值都設(shè)置為寬度或高度值的一半*/}
border-radius的值不僅能用px單位,你還可以用百分比或者em,但兼容性目前還不太好。
實心上半圓:
div{height:50px;/*是width的一半*/width:100px;background:#9da;border-radius:50px 50px 0 0;/*半徑至少設(shè)置為height的值*/}
實心圓:
div{
height:100px;/*與width設(shè)置一致*/width:100px;background:#9da;border-radius:50px;/*四個圓角值都設(shè)置為寬度或高度值的一半*/}
2014-12-09