久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='PFf9K'></bdo><ul id='PFf9K'></ul>

  • <legend id='PFf9K'><style id='PFf9K'><dir id='PFf9K'><q id='PFf9K'></q></dir></style></legend>

    <small id='PFf9K'></small><noframes id='PFf9K'>

        <tfoot id='PFf9K'></tfoot>

      1. <i id='PFf9K'><tr id='PFf9K'><dt id='PFf9K'><q id='PFf9K'><span id='PFf9K'><b id='PFf9K'><form id='PFf9K'><ins id='PFf9K'></ins><ul id='PFf9K'></ul><sub id='PFf9K'></sub></form><legend id='PFf9K'></legend><bdo id='PFf9K'><pre id='PFf9K'><center id='PFf9K'></center></pre></bdo></b><th id='PFf9K'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='PFf9K'><tfoot id='PFf9K'></tfoot><dl id='PFf9K'><fieldset id='PFf9K'></fieldset></dl></div>
      2. 如何創建 Facebook 狀態箭頭文本框?

        How to create the Facebook Status arrowed textbox?(如何創建 Facebook 狀態箭頭文本框?)

          <small id='iU4xP'></small><noframes id='iU4xP'>

              <bdo id='iU4xP'></bdo><ul id='iU4xP'></ul>
                <tbody id='iU4xP'></tbody>
              <i id='iU4xP'><tr id='iU4xP'><dt id='iU4xP'><q id='iU4xP'><span id='iU4xP'><b id='iU4xP'><form id='iU4xP'><ins id='iU4xP'></ins><ul id='iU4xP'></ul><sub id='iU4xP'></sub></form><legend id='iU4xP'></legend><bdo id='iU4xP'><pre id='iU4xP'><center id='iU4xP'></center></pre></bdo></b><th id='iU4xP'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='iU4xP'><tfoot id='iU4xP'></tfoot><dl id='iU4xP'><fieldset id='iU4xP'></fieldset></dl></div>

            • <tfoot id='iU4xP'></tfoot>

            • <legend id='iU4xP'><style id='iU4xP'><dir id='iU4xP'><q id='iU4xP'></q></dir></style></legend>

                1. 本文介紹了如何創建 Facebook 狀態箭頭文本框?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我怎樣才能得到一個彎曲的文本框,比如 Facebook 狀態文本框,只有 html 和 css?

                  How can I get a curved TextBox like the Facebook Status TextBox with html and css only?

                  誰能告訴我怎么做??

                  推薦答案

                  我的跨瀏覽器,Facebook 樣式文本框的純 CSS 版本:

                  My Cross-Browser, CSS-only version of the Facebook-style textbox:

                  如何

                  我在內部容器 div 上使用了 :before(具有 7px 折疊邊框,三個透明,一個白色)創建一個三角形,其中邊框相交,然后我將它放在具有絕對定位的文本框(覆蓋文本框的邊框以將三角形附加"到它).

                  I've used :before on the inner container div (with 7px collapsed borders, three transparents, one white) to create a triangle where the borders intersect themselves, then i placed it just over the textbox with absolute positioning (overriding the textbox's border to "attach" the triangle to it).

                  根據這個問題,rgba應該使用 代替 transparent 以防止 Firefox 放置不需要的邊框;

                  According to this question, rgba should be used instead of transparent in order to prevent Firefox to put an unwanted border;

                  然后,為了以跨瀏覽器的方式為邊框著色,我使用 :after 放置一個相同的三角形,大小相同,顏色相似(*) 到文本框的邊框,僅比白色三角形高 1px(在頂部位置).

                  Then, for coloring the border in a cross-browser way, i used :after to place an identical triangle, with the same size, with a color similar(*) to the textbox's borders, just 1px higher (in top position) than the white triangle.

                  此時,我已使用 z-index 屬性將灰色三角形置于白色三角形下方,以便其主體"(底部邊框)只有 1px 可見.

                  At this point, i've used z-index property to place the gray triangle UNDER the white triangle, so that only 1px of its "body" (the bottom border) would have been visible.

                  這為箭頭創建了灰色邊框.

                  This created the gray border to the arrow.

                  (*) 我選擇的顏色比文本框的邊框顏色深一點,因為混合兩個三角形會產生增亮"效果.使用#888 而不是#bbb,結果是可以接受的,并且比使用原始顏色本身更類似于原始顏色.

                  (*) I've chosen a color a bit darker than the textbox's borders one, because of the "brightening" effect generated by mixing the two triangles. With #888 instead of #bbb, the result is acceptable and more similar to the original color than using the original color itself.

                  這里是注釋代碼和演示:

                  Here is the commented code and the demo:

                  演示

                  http://jsfiddle.net/syTDv/

                  HTML

                  <div id="fbContainer">
                     <div class="facebookTriangle">  
                        <input type="text" id="facebookTextbox" value="some text"/>
                     </div>
                  </div>
                  

                  CSS

                  body {
                      padding: 30px;
                  }
                  
                  
                  /* With this container you can put the textbox anywhere on the page,
                   without disturbing the triangles's absolute positioning */
                  #fbContainer{
                    position: relative;
                  }
                  
                  
                  /* some adjustments to make the textbox more pretty */
                  #facebookTextbox{   
                     border: 1px solid #bbb !important;
                     padding: 5px;
                     color: gray;
                     font-size: 1em;
                     width: 200px;
                  }
                  
                  
                  /* block element needed to apply :before and :after */
                  .facebookTriangle{
                    height: 30px;
                    padding-top: 10px;
                  }
                  
                  
                  /* white triangle */
                  /* collapsing borders (because of the empty content) 
                     creates four triangles, three transparents and one coloured, 
                     the bottom one */    
                  .facebookTriangle:before {
                    content: '';
                    border-style: solid;
                    border-width: 7px;
                    border-color: rgba(255,255,255,0) rgba(255,255,255,0) 
                                  white rgba(255,255,255,0);
                    top: -3px;
                    position: absolute;
                    left: 7px;
                    z-index: 2; /* stay in front */
                  }
                  
                  
                  /* gray triangle */
                  /* used as border for white triangle */
                  .facebookTriangle:after {
                    content: '';
                    border-style: solid;
                    border-width: 7px;
                    border-color: rgba(255,255,255,0) rgba(255,255,255,0) 
                                  #888 rgba(255,255,255,0);  
                    top: -4px;
                    position: absolute;
                    left: 7px;
                    z-index: 1; /* stay behind */
                  }
                  

                  希望對您有所幫助...

                  Hope that helps...

                  這篇關于如何創建 Facebook 狀態箭頭文本框?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Changing leaflet markercluster icon color, inheriting the rest of the default CSS properties(更改傳單標記群集圖標顏色,繼承其余默認 CSS 屬性)
                  How can I change the default loading tile color in LeafletJS?(如何更改 LeafletJS 中的默認加載磁貼顏色?)
                  html2canvas captures everything except the content of an inner canvas(html2canvas 捕獲除內部畫布內容之外的所有內容)
                  Showing an offline OSM map file. Suggestion: an MB Tiles file with Js.library(顯示離線 OSM 映射文件.建議:一個帶有 Js.library 的 MB Tiles 文件)
                  Clicking a leaflet marker takes you to URL(單擊傳單標記會將您帶到 URL)
                  How do I show a label beyond a certain zoom level in Leaflet?(如何在 Leaflet 中顯示超出特定縮放級別的標簽?)
                  <legend id='4Flf3'><style id='4Flf3'><dir id='4Flf3'><q id='4Flf3'></q></dir></style></legend>

                    <tfoot id='4Flf3'></tfoot>

                      <tbody id='4Flf3'></tbody>

                          <i id='4Flf3'><tr id='4Flf3'><dt id='4Flf3'><q id='4Flf3'><span id='4Flf3'><b id='4Flf3'><form id='4Flf3'><ins id='4Flf3'></ins><ul id='4Flf3'></ul><sub id='4Flf3'></sub></form><legend id='4Flf3'></legend><bdo id='4Flf3'><pre id='4Flf3'><center id='4Flf3'></center></pre></bdo></b><th id='4Flf3'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='4Flf3'><tfoot id='4Flf3'></tfoot><dl id='4Flf3'><fieldset id='4Flf3'></fieldset></dl></div>
                        • <small id='4Flf3'></small><noframes id='4Flf3'>

                            <bdo id='4Flf3'></bdo><ul id='4Flf3'></ul>
                          • 主站蜘蛛池模板: 国产精品1区2区3区 国产在线观看一区 | 性高湖久久久久久久久aaaaa | 色av一区 | aaaaaaa片毛片免费观看 | 97久久超碰 | 亚洲国产18 | 91精品国产综合久久久久 | 亚洲草草视频 | 日本免费视频在线观看 | 黑人巨大精品欧美一区二区一视频 | 国产亚洲二区 | 国产一区二区三区四区三区四 | av香蕉| 国产精品国产三级国产aⅴ原创 | 亚洲一区精品视频 | 丝袜 亚洲 欧美 日韩 综合 | 亚洲国产精品视频一区 | 国产美女永久免费无遮挡 | 国产激情视频网站 | 欧美在线一区二区三区 | 国产不卡视频 | 日韩激情网| 黄网免费| 韩国理论电影在线 | 91亚洲国产成人久久精品网站 | 日韩一级 | 精一区二区| 人人擦人人干 | www.玖玖玖 | 国产真实精品久久二三区 | 亚州精品天堂中文字幕 | 欧美一级在线观看 | 欧美日韩一区在线 | 精品国产免费一区二区三区五区 | 黄色在线免费观看 | 国产精品久久久久久久午夜 | 黄色一级毛片免费看 | 久久成人精品视频 | 国产精品久久久亚洲 | 欧美激情精品久久久久久 | 国产精品久久午夜夜伦鲁鲁 |