比較有用的樣式


背景圖水平垂直居中

background:#ebebeb url(/Images/BlogHTImg/bkht_jia.jpg) center center  no-repeat;

背景圖居左垂直居中

background:#ebebeb url(/Images/BlogHTImg/bkht_jia.jpg) left center  no-repeat;

background:#ebebeb url(/Images/BlogHTImg/bkht_jia.jpg) 5px center  no-repeat;//距離左邊5px

背景圖和文字顯示在一行

background:#ebebeb url(/Images/BlogHTImg/bkht_jia.jpg) left center  no-repeat;//距離左邊5px

vertical-align:middle; 

ie9 ie10中文字體不兼容

將中文字體名稱轉換為Unicode編碼

Unicode編碼轉換表http://www.divcss5.com/jiqiao/j325.shtml

如下:
div{font-family:"宋體";}
轉后:
div{font-family:"\5B8B\4F53";}

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM