精通CSS(層疊樣式單)文法請幫忙看看

來源:互聯網
上載者:User
    在Web設計中,CSS(Cascading Style Sheet)其實是很熟悉的東西,不過在看一些複雜網頁的CSS時,常常被一些莫名其妙寫法搞得比較鬱悶。於是在Google上翻啊翻,翻了一堆CSS的手冊來看也沒有徹底搞明白是怎麼回事。下面總結一下,希望能作為一個快速參考來對付那些"怪異"的CSS。

    什麼是"怪異"的CSS?比如這些:

<style>
.col, .col_wide
{}{
    border: 1px solid #ebf0fa;
}

.col_cap *, .mod_cap *
{}{
    cursor: move;
}

.col_head td, .col_head td a, .col_head td a:hover, .col_head td a:active
{}{
    background-color: #ebf0fa;
}

v\:*
{}{
    behavior:    url(#default#VML);
}

#cbs, #cts
{}{
    text-align : left;
}

.sg, .sg*, .ad, .ad*
{}{
    color : #888888
}

.cb2#cft, .cb2#cfb
{}{
    display : none
}

div#nstext
{}{
    top: 0px;
}
</style>

    希望大家給於講解並說說這麼些用法有什麼優點呢?

相關文章

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.