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

  • <tfoot id='4ynS8'></tfoot>

        <bdo id='4ynS8'></bdo><ul id='4ynS8'></ul>

      <legend id='4ynS8'><style id='4ynS8'><dir id='4ynS8'><q id='4ynS8'></q></dir></style></legend>

      <small id='4ynS8'></small><noframes id='4ynS8'>

      <i id='4ynS8'><tr id='4ynS8'><dt id='4ynS8'><q id='4ynS8'><span id='4ynS8'><b id='4ynS8'><form id='4ynS8'><ins id='4ynS8'></ins><ul id='4ynS8'></ul><sub id='4ynS8'></sub></form><legend id='4ynS8'></legend><bdo id='4ynS8'><pre id='4ynS8'><center id='4ynS8'></center></pre></bdo></b><th id='4ynS8'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='4ynS8'><tfoot id='4ynS8'></tfoot><dl id='4ynS8'><fieldset id='4ynS8'></fieldset></dl></div>
      1. 使用 CSS 在文本框中居中文本(垂直)

        Centering text (vertically) inside a textbox using CSS(使用 CSS 在文本框中居中文本(垂直))

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

        1. <tfoot id='r4mNH'></tfoot>
              • <bdo id='r4mNH'></bdo><ul id='r4mNH'></ul>
              • <legend id='r4mNH'><style id='r4mNH'><dir id='r4mNH'><q id='r4mNH'></q></dir></style></legend>

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

                    <tbody id='r4mNH'></tbody>

                  本文介紹了使用 CSS 在文本框中居中文本(垂直)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我目前正在使用具有背景的文本框.我想知道是否可以在文本框中將文本(垂直)居中.

                  I'm currently working with a textbox that has a background. I was wondering if it's possible to center text (vertically) inside the textbox.

                  重要:它在 Firefox 中完美居中.只有 IE 由于某種原因它寫得太高了.我試過行高、填充和邊距.沒有任何效果.有什么想法嗎?

                  important: it's perfectly centered in firefox. Only IE it writes it too high for some reason. I've tried line-height, padding, and margin. Nothing works. Any ideas?

                  這是我當前的 CSS.我應該說我已經(jīng)嘗試了 margin-top 方法,但它對我不起作用.另外,正如我所提到的,這僅適用于 IE.我有 IE 特定的樣式表,所以不用擔心.

                  This is my current CSS. I should say that I've tried the margin-top method and it didn't work for me. Also, as I mentioned, this is only for IE. I have IE specific style sheets so no worries.

                  .textValue { color: black; font-size: 12px; font-family: David, sans-serif; }
                  input { width: 110px; padding: 0 2px; padding-right: 4px; height: 20px; border: solid 1px white; margin-bottom: 0px; background: url(../images/contactTextBg.png) no-repeat top right; }
                  label { float: right; margin-left: 5px; font-size: 13px; }
                  

                  對于 IE,我有以下內(nèi)容:

                  For IE, I have the following:

                  .textValue { font-size: 14px; }
                  

                  至于 HTML:

                              <tr>
                                  <td><label for="name">name</label></td>
                                  <td><input type="text" name="name" id="name" class="textValue" value="" /></td>
                              </tr>
                  

                  謝謝,阿米特

                  推薦答案

                  我想知道你如何能夠?qū)R文本框中的文本,但既然你說,這里是建議:

                  對于白癡 IE,你可以使用這個 IE 特定的 hack:

                  For idiot IE, you can use this IE specific hack:

                  margin-top:50px; /* for standard-compliant browsers */
                  *margin-top:50px; /* for idiot IE */
                  _margin-top:50px; /* for idiot IE */
                  

                  如果您愿意,您可能想嘗試其他類似的屬性,而不是 margin-top.

                  You might want to try other similar properties if you want rather than margin-top.

                  這篇關(guān)于使用 CSS 在文本框中居中文本(垂直)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  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 捕獲除內(nèi)部畫布內(nèi)容之外的所有內(nèi)容)
                  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 中顯示超出特定縮放級別的標簽?)
                      <tbody id='r0aUd'></tbody>

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

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

                      <legend id='r0aUd'><style id='r0aUd'><dir id='r0aUd'><q id='r0aUd'></q></dir></style></legend>

                        <tfoot id='r0aUd'></tfoot>

                            主站蜘蛛池模板: 日韩一区精品 | 中文字幕在线视频一区二区三区 | 精品视频在线观看 | 欧美精品久久久久久久久久 | 天天宗合网 | 国户精品久久久久久久久久久不卡 | 久久久免费精品 | 天天操天天插 | 91精品久久久久久久久中文字幕 | 日韩三级在线观看 | 欧美日韩一区二区三区四区五区 | 久久久精品久 | 午夜久久久 | 欧美午夜影院 | 国产精品海角社区在线观看 | 国产人成精品一区二区三 | 在线三级网址 | 久久中文字幕电影 | 国产91在线观看 | 在线免费观看视频你懂的 | 欧美乱大交xxxxx另类电影 | 欧美精品网站 | 成人av久久| 在线观看亚洲一区二区 | 亚洲视频免费在线看 | 人人干在线视频 | 亚洲国产精品一区 | 亚洲精品免费看 | 亚洲性免费 | 国产精品a免费一区久久电影 | 国产特一级黄色片 | 日本午夜精品一区二区三区 | 麻豆视频在线免费看 | 欧美激情精品久久久久久 | 成年人在线观看 | 国产精品日韩高清伦字幕搜索 | 欧美精品在线观看 | 做a网站 | 日韩一区二区av | 美女国产一区 | 91免费小视频|