跨域安全問題
> Font from origin 'http://www.xianlaiwan.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://www.xianlaiwan.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
這有點厲害的趕腳,我做Web開發這么久竟然沒寫出來。慚愧?。∠旅尜N出完整代碼,請先思考,再看下面代碼
/*制作導航分隔線效果*/
.nav li::before,
.nav li::after{
content:"";
position:absolute;
top:14px;
height: 25px;
width: 1px;
}
/*制作導航分隔線效果*/
.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
border-radius是向元素添加圓角邊框。
border-radius的值不僅能用px單位,你還可以用百分比或者em,但兼容性目前還不太好。
實心上半圓:
div{height:50px;/*是width的一半*/width:100px;background:#9da;border-radius:50px 50px 0 0;/*半徑至少設置為height的值*/}
實心圓:
div{
height:100px;/*與width設置一致*/width:100px;background:#9da;border-radius:50px;/*四個圓角值都設置為寬度或高度值的一半*/}
border-radius的值不僅能用px單位,你還可以用百分比或者em,但兼容性目前還不太好。
實心上半圓:
div{height:50px;/*是width的一半*/width:100px;background:#9da;border-radius:50px 50px 0 0;/*半徑至少設置為height的值*/}
實心圓:
div{
height:100px;/*與width設置一致*/width:100px;background:#9da;border-radius:50px;/*四個圓角值都設置為寬度或高度值的一半*/}
2014-12-09