<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                border-radius: none | length{1,4} [/ length{1,4}? 其中每一個值可以為 數值或百分比的形式。? length/length 第一個lenght表示水平方向的半徑,而第二個表示豎直方向的半徑。? 如果是一個值,那么 top-left、top-right、bottom-right、bottom-left 四個值相等。? 如果是兩個值,那么 top-left和bottom-right相等,為第一個值,top-right和bottom-left值相等,為第二個值。? ![](https://box.kancloud.cn/2016-04-07_570603fbecef0.jpg)? 如果是三個值,那么第一個值是設置top-left,而第二個值是 top-right 和 bottom-left 并且他們會相等,第三個值是設置 bottom-right。? ![](https://box.kancloud.cn/2016-04-07_570603fc0a570.jpg)? 如果是四個值,那么第一個值是設置 top-left, 而第二個值是 top-right 第三個值 bottom-right 第四個值是設置 bottom-left? ![](https://box.kancloud.cn/2016-04-07_570603fc1c775.jpg) **除了上述的簡寫外,還可以和border一樣,分別寫四個角,如下:**? border-top-left-radius: //左上角? border-top-right-radius: //右上角? border-bottom-right-radius: //右下角? border-bottom-left-radius: //左下角? 分別是水平方向和豎直方向半徑,第二值省略的情況下,水平方向和豎直方向的半徑相等。? border-radius 只有在以下版本的瀏覽器:Firefox4.0+、Safari5.0+、Google Chrome 10.0+、Opera 10.5+、IE9+ 支持 border-radius 標準語法格式,對于老版的瀏覽器,border-radius 需要根據不同的瀏覽器內核添加不同的前綴,比說 Mozilla 內核需要加上“-moz”,而 Webkit 內核需要加上“-webkit”等,但是IE和Opera沒有私有格式,因此為了最大程度的兼容瀏覽器,我們需要設置如下:? -webkit-border-radius: 10px 20px 30px;? -moz-border-radius: 10px 20px 30px;? border-radius: 10px 20px 30px;? **請將標準形式寫在瀏覽器私有形式之后。** 舉幾個例子看一下效果: ~~~ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="Keywords" content="關鍵詞一,關鍵詞二"> <meta name="Description" content="網站描述內容"> <meta name="Author" content="劉艷"> <title></title> <style> img{border-radius: 30px;margin: 100px;} </style> </head> <body> <img src="../images/photo.jpg" width="300px"> </body> </html> ~~~ 效果:? ![](https://box.kancloud.cn/2016-04-07_570603fc30449.jpg)? 四個角的半徑都是30px; 再看一個標準的圓以及橢圓: ~~~ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="Keywords" content="關鍵詞一,關鍵詞二"> <meta name="Description" content="網站描述內容"> <meta name="Author" content="劉艷"> <title></title> <style> div{display: inline-block; border: 10px solid red;} .circle{width: 50px; height: 50px; -webkit-border-radius:50%;-moz-border-radius:50%;border-radius: 50%;} .elipse{width: 50px; height: 100px; -webkit-border-radius:50%;-moz-border-radius:50%;border-radius: 50%;} </style> </head> <body> <div class="circle"></div> <div class="elipse"></div> </body> </html> ~~~ 效果:? ![](https://box.kancloud.cn/2016-04-07_570603fc51478.jpg)? 第一個和第二個div的差別主要在于其是正方形還是長方形,圓圈在輪播時,可以替代圓圈的圖片使用。 以上都是水平方向和豎直方向半徑相等的例子,下面舉兩個水平方向和豎直方向半徑不相同的例子: ~~~ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="Keywords" content="關鍵詞一,關鍵詞二"> <meta name="Description" content="網站描述內容"> <meta name="Author" content="劉艷"> <title></title> <style> div{display: inline-block; border: 10px solid red;margin: 100px;} .div1{width: 200px; height: 100px;border-radius: 0px 50px 32px/28px 50px 70px;} .div2{width:100px; height: 200px; border-radius: 26px 106px 162px 32px/28px 80px 178px 26px;} .div3{width:100px;height: 200px; border-radius: 20px 50px/ 20px 50px;} </style> </head> <body> <div class="div1"></div> <div class="div2"></div> <div class="div3"></div> </body> </html> ~~~ 效果如下所示:? ![](https://box.kancloud.cn/2016-04-07_570603fc6190c.jpg)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看