基情四射的兩個css樣式

來源:互聯網
上載者:User

標籤: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後面,它咋就又能起作用了呢?????

  無解。。。。真是好基友啊,分開還不幹活了!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.