標籤:des style blog color os for ar 問題
自訂blog樣式時,程式碼片段的line-height繼承樣式post的line-height,間隔太大了,決定再減小點,css都玩了幾年了,感覺中這是很容易的事情。然後,就悲劇了好久,原先自訂樣式表為
.headermaintitle { font-family:"華文行楷",Verdana,Arial,Helvetica,sans-serif; font-size:50px;}.headerDis { font-family:"華文行楷",Verdana,Arial,Helvetica,sans-serif; font-size:20px; text-align:center;}body { font-size:12px;}.mySearch { display:none;}.postCon { font-size:12px; }.c_b_p_desc { line-height:24px;}.day { margin-bottom:0;}.day center { display:none;}.postSeparator { display:none;}#left_border { height:auto;}#footer { display:block; text-align:center; padding:30px 0px 15px 0px; }.post { font-size:12px; line-height:26px;}#cnblogs_post_body p { margin:0; padding:0;}#cnblogs_post_body a { color:blue;}#author_profile { display:none;}div.commentform textarea { width:100%;}.commentbox_title { width:100%;}#commentbox_opt { text-align:right;}#ad_under_post_holder { display:none;}.c_ad_block { line-height:20px;}#site_nav_under,#blog_news_kb { display:none;}.feedbackItem { border-bottom:1px dashed #ccc;}.feedbackCon { background:none;}.postTitle { padding: 22px 15px 10px 28px;}.post pre { line-height:16px;}
我是覺得很正常啊,最後三行重寫pre的行高,應該很順利吧。但是。。。居然不起作用,疑惑了很久,一直無法解決。
剛看完電視,無聊,就決定繼續折騰,但是,死活還是不對,審查元素中,line-height屬效能看到是取了樣式post的,我前面是重寫過post樣式,但是後面再去重寫post中的pre的行高為什麼就不行????
然後,猜想既然是用的post樣式的,我緊跟著重寫下pre的行高,應該問題不大吧。。。於是挪到了post樣式後面,重新整理。。。咦????好了!!!!
只是把最後那個重新pre行高的樣式挪到樣式post後面,它咋就又能起作用了呢?????
無解。。。。真是好基友啊,分開還不幹活了!