<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    有才華的人,別忘記給滋潤你的那塊土壤施肥

      BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
      28 隨筆 :: 5 文章 :: 147 評論 :: 0 Trackbacks
    1、不用圖片實現(xiàn) Rounded corners
    CSS代碼如下:
    .rtop, .rbottom{display:block;background:#fff;}
    .rtop *, .rbottom *
    {display: block; height: 1px; overflow: hidden;background:#ccc;}
    .r1
    {margin: 0 5px;}
    .r2
    {margin: 0 3px;}
    .r3
    {margin: 0 2px;}
    .r4
    {margin: 0 1px; height: 2px;}
    #withoutPic
    {
       width
    : 500px;    
       background
    :#ccc;
       color
    :#fff;
       margin
    :0 15px;
    }

    在BODY中加入:
    <div id=withoutPic>
                 
    <class="rtop">
                    
    <class="r1"></b> <class="r2"></b> <class="r3"></b> <class="r4"></b>
             
    </b>
             
    <p>This is a example of "不用圖片實現(xiàn) Rounded corners " by kissjava !!!</p>
             
    <class="rbottom">
              
    <class="r4"></b> <class="r3"></b> <class="r2"></b><class="r1"></b>
             
    </b>
          
    </div>

    效果為:

    2、用圖片實現(xiàn) Rounded corners
    CSS代碼如下:
    .withPic    { width: 300px; background: #fbeac3; border: 1px solid #534515; position: relative; margin: 10px 0;}
                    .withPic .tl
    { position: absolute; width: 14px; height: 14px; background: url(images/box-two-tl.png); top: -1px; left: -1px; }
                    .withPic .tr
    { width: 14px; height: 14px; background: url(images/box-two-tr.png); position: absolute; top: -1px; right: -1px; }
                    .withPic .bl
    { width: 14px; height: 14px; background: url(images/box-two-bl.png); position: absolute; bottom: -1px; left: -1px; }
                    .withPic .br
    { width: 14px; height: 14px; background: url(images/box-two-br.png); position: absolute; bottom: -1px; right: -1px; }
                    .withPic .inside
    { padding: 10px; }

    在BODY中加入:

     <div class="withPic">
                    
    <div class="inside">
                        
    <p>This is a example of "用圖片實現(xiàn) Rounded corners " by kissjava!!!</p>
                    
    </div>
                    
    <div class="tr"></div>
                    
    <div class="tl"></div>
                    
    <div class="br"></div>
                    
    <div class="bl"></div>
             
    </div>

    效果為:

    3、Blockquote標簽使用
    CSS代碼如下:

    blockquote.style3 {
                font
    : 18px/30px normal Tahoma, sans-serif;
                      padding-top
    : 22px;
                      margin
    : 5px;
                    background-image
    : url(images/openquote3.gif);
                background-position
    : top left;
                background-repeat
    : no-repeat;
                 text-indent
    : 65px;
            
    }

              blockquote.style3 span 
    {
                display
    : block;
                background-image
    : url(images/closequote3.gif);
                background-repeat
    : no-repeat;
                background-position
    : bottom right;
            
    }

    在BODY中加入:

    <div id=page-wrap>
               
    <blockquote class="style3">
                
    <span> 
                This is a example of Blockquote by kissjava!!!
    <br/><br/>    
            
    </span>
           
    </blockquote>
         
    </div>
    效果為:

    4、From 表單
    CSS代碼如下:
    label,input {display: block;width: 150px;float: left;margin-bottom: 10px;}
    label 
    {text-align: right;width: 75px;padding-right: 20px;}
    br 
    {clear: left;}
    在BODY中加入:
          <form>
                    
    <label for="name">Name</label>
                    
    <input id="name" name="name"><br>
                    
    <label for="address">Address</label>
                    
    <input id="address" name="address"><br>
                    
    <label for="city">City</label>
                    
    <input id="city" name="city"><br>
             
    </form>

    效果為:

    5、段落的第一個字占多行
    CSS代碼如下:
    p.introduction:first-letter {
        font-size 
    : 300%;
        font-weight 
    : bold;
        float 
    : left;
        width 
    : 1em;
    }
    在BODY中加入:

    <div id=page1>
      
    <class="introduction"> 
          這個例子是第一個字站住多行,至于占幾行那得看你設置的值,多加幾行。。。。。   
       
    </p>
    </div> 
    效果為:

    這里是完整的代碼以及圖片,下載
    posted on 2008-12-20 13:42 kissjava 閱讀(2018) 評論(3)  編輯  收藏 所屬分類: js&css

    評論

    # re: 一些常用的css技巧 2008-12-20 14:16 HiMagic!
    整理的不錯  回復  更多評論
      

    # re: 一些常用的css技巧 2008-12-21 07:32 heyang
    不錯,給個記號。

    好像還有一個Js版的圓角Div,指定div類名即可。  回復  更多評論
      

    # re: 一些常用的css技巧 2008-12-21 14:13 何永進
    不錯 學習了  回復  更多評論
      


    只有注冊用戶登錄后才能發(fā)表評論。


    網站導航:
     
    主站蜘蛛池模板: fc2免费人成为视频| 99热在线精品免费全部my| 亚洲天堂中文字幕| 在线v片免费观看视频| 日本黄页网址在线看免费不卡| 国产精品亚洲片在线| 69天堂人成无码麻豆免费视频| 午夜在线亚洲男人午在线| 亚洲AV午夜成人影院老师机影院| 99在线视频免费观看视频| 一级中文字幕乱码免费| 国产精品免费久久久久电影网| 亚洲美免无码中文字幕在线| 国产婷婷高清在线观看免费| 中文字幕无码一区二区免费| 亚洲精品无码专区在线| 啦啦啦高清视频在线观看免费 | 亚洲熟妇无码乱子AV电影| 日本高清在线免费| eeuss影院免费直达入口| 91丁香亚洲综合社区| 国产亚洲人成网站在线观看不卡| 天天摸天天碰成人免费视频| 美女在线视频观看影院免费天天看| 最新亚洲卡一卡二卡三新区| 精品国产亚洲一区二区三区 | 亚洲人成电影在线观看网| 国产AⅤ无码专区亚洲AV| 嫩草影院在线免费观看| 久久久久久国产精品免费无码| 免费大片黄在线观看| 在线精品亚洲一区二区| 亚洲人成网站在线播放影院在线 | 国产偷国产偷亚洲清高动态图| 蜜桃视频在线观看免费网址入口| 久久久久久久99精品免费| 免费大片av手机看片高清| 亚洲av日韩综合一区久热| 亚洲一区二区三区免费视频| 亚洲国产综合专区在线电影| 国产成人亚洲精品狼色在线|