pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

  • <small id='5V9o6'></small><noframes id='5V9o6'>

      <bdo id='5V9o6'></bdo><ul id='5V9o6'></ul>

      1. <legend id='5V9o6'><style id='5V9o6'><dir id='5V9o6'><q id='5V9o6'></q></dir></style></legend>

        <tfoot id='5V9o6'></tfoot>

      2. <i id='5V9o6'><tr id='5V9o6'><dt id='5V9o6'><q id='5V9o6'><span id='5V9o6'><b id='5V9o6'><form id='5V9o6'><ins id='5V9o6'></ins><ul id='5V9o6'></ul><sub id='5V9o6'></sub></form><legend id='5V9o6'></legend><bdo id='5V9o6'><pre id='5V9o6'><center id='5V9o6'></center></pre></bdo></b><th id='5V9o6'></th></span></q></dt></tr></i><div class="e5bitvf" id='5V9o6'><tfoot id='5V9o6'></tfoot><dl id='5V9o6'><fieldset id='5V9o6'></fieldset></dl></div>
      3. 特定項目(選項)HTML 中的列表框樣式

        List Box Style in a particular item (option) HTML(特定項目(選項)HTML 中的列表框樣式)

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

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

                    <tbody id='ThgwB'></tbody>
                  <legend id='ThgwB'><style id='ThgwB'><dir id='ThgwB'><q id='ThgwB'></q></dir></style></legend>
                1. 本文介紹了特定項目(選項)HTML 中的列表框樣式的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在嘗試做出這種行為.

                  I'm trying to make this behavior.

                  當一個有一個列表框(或組合框)時,我的第一個元素(類似于選擇一個")應該有一個特定的樣式.

                  When a have a listBox (or comboBox), my first element (something like "choose one") should have a particular style.

                  使用這個(測試)代碼:

                  With this (test) code:

                  <style type="text/css">
                   .testX {font-style: italic;}
                  </style>
                  
                  (...)
                  
                  <select name="name" id="id">
                  
                  <option class="testeX" selected="selected" value="#">
                      <p class="testX">Choose One</p>
                  </option>
                  <option value="TestValue">
                      TestValue
                  </option>
                  

                  當我展開列表框時,我可以在 Firefox(但在 Chrome 中看不到)上看到這種行為,但是當我選擇選擇一個"時,我的字段沒有(斜體)樣式.

                  i can see this behavior on Firefox (but not in Chrome) when i expand my listBox but when i select my 'Choose one' my field doesn't have the (italic) style.

                  我該怎么做?是否可以僅使用 HTML、CSS 或我需要更多(如 jQuery)來做到這一點?

                  How can i do this? Is possible do this only with HTML, CSS or i need more (like jQuery)?

                  謝謝.

                  推薦答案

                  斜體不適用于chrome和opera.請檢查 http://www.electrictoolbox.com/style-select-optgroup-options-css/

                  italic is not apply in chrome and opera. plz check http://www.electrictoolbox.com/style-select-optgroup-options-css/

                  我們可以為選項提供任何設計.

                  we can give any design for options.

                  <select name="name" id="id">
                      <option style='font-style: italic; font-weight:bold;' selected="selected" value="#">
                          <span>Choose One</span>
                      </option>
                      <optgroup label="Option group 1">
                          <option value="TestValue">    TestValue</option>
                          <option value="TestValue">    TestValue</option>
                          <option value="TestValue">    TestValue</option>
                      </optgroup>
                  </select>
                  

                  css:

                  select option {
                      background: none repeat scroll 0 0 #E5E3E3;
                      border: 1px dotted #CCCCCC;
                      height: 15px;
                      line-height: 15px;
                      text-indent: 3px;
                      text-transform: capitalize;
                      z-index: -9999; 
                  }
                  optgroup { /* Change font style and text alignment */
                      font-style:italic;
                      text-align:right;
                  }
                  

                  這篇關于特定項目(選項)HTML 中的列表框樣式的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  document.write() overwriting the document?(document.write() 覆蓋文檔?)
                  AngularJS Error: Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, https(AngularJS 錯誤:跨源請求僅支持協議方案:http、data、chrome-extension、https) - IT屋-程序員軟件開發技術分
                  IE10 and Cross-origin resource sharing (CORS) issues with Image / Canvas(IE10 和 Image/Canvas 的跨域資源共享 (CORS) 問題)
                  Importing script with type=module from local folder causes a CORS issue(從本地文件夾導入 type=module 的腳本會導致 CORS 問題)
                  HTML crossorigin attribute for img tag(img 標簽的 HTML 跨域屬性)

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

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

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

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

                            主站蜘蛛池模板: 成都珞石机械 - 模温机、油温机、油加热器生产厂家 | 上海刑事律师|刑事辩护律师|专业刑事犯罪辩护律师免费咨询-[尤辰荣]金牌上海刑事律师团队 | 质构仪_鱼糜弹性仪-上海腾拔仪器科技有限公司 | 实木家具_实木家具定制_全屋定制_美式家具_圣蒂斯堡官网 | 合肥钣金加工-安徽激光切割加工-机箱机柜加工厂家-合肥通快 | 破碎机锤头_合金耐磨锤头_郑州宇耐机械工程技术有限公司 | 蜜蜂职场文库_职场求职面试实用的范文资料大全 | 精密线材测试仪-电线电缆检测仪-苏州欣硕电子科技有限公司 | 小小作文网_中小学优秀作文范文大全 | 中矗模型-深圳中矗模型设计有限公司| 化妆品加工厂-化妆品加工-化妆品代加工-面膜加工-广东欧泉生化科技有限公司 | 温州富欧金属封头-不锈钢封头厂家 | 南京租车,南京汽车租赁,南京包车,南京会议租车-南京七熹租车 | 激光内雕_led玻璃_发光玻璃_内雕玻璃_导光玻璃-石家庄明晨三维科技有限公司 激光内雕-内雕玻璃-发光玻璃 | 道康宁消泡剂-瓦克-大川进口消泡剂供应商| 合肥仿石砖_合肥pc砖厂家_合肥PC仿石砖_安徽旭坤建材有限公司 | 细石混凝土泵_厂家_价格-烟台九达机械有限公司 | 智成电子深圳tdk一级代理-提供TDK电容电感贴片蜂鸣器磁芯lambda电源代理经销,TDK代理商有哪些TDK一级代理商排名查询。-深圳tdk一级代理 | 牛皮纸|牛卡纸|进口牛皮纸|食品级牛皮纸|牛皮纸厂家-伽立实业 | 千斤顶,液压千斤顶-力良企业,专业的液压千斤顶制造商,shliliang.com | 山东钢衬塑罐_管道_反应釜厂家-淄博富邦滚塑防腐设备科技有限公司 | 心肺复苏模拟人|医学模型|急救护理模型|医学教学模型上海康人医学仪器设备有限公司 | 四川职高信息网-初高中、大专、职业技术学校招生信息网 | 外贸资讯网 - 洞悉全球贸易,把握市场先机 | 长沙印刷厂-包装印刷-画册印刷厂家-湖南省日大彩色印务有限公司 青州搬家公司电话_青州搬家公司哪家好「鸿喜」青州搬家 | 华禹护栏|锌钢护栏_阳台护栏_护栏厂家-华禹专注阳台护栏、楼梯栏杆、百叶窗、空调架、基坑护栏、道路护栏等锌钢护栏产品的生产销售。 | (中山|佛山|江门)环氧地坪漆,停车场地板漆,车库地板漆,聚氨酯地板漆-中山永旺地坪漆厂家 | 云南外加剂,云南速凝剂,云南外加剂代加工-普洱澜湄新材料科技有限公司 | 深圳VI设计-画册设计-LOGO设计-包装设计-品牌策划公司-[智睿画册设计公司] | 杭州中央空调维修_冷却塔/新风机柜/热水器/锅炉除垢清洗_除垢剂_风机盘管_冷凝器清洗-杭州亿诺能源有限公司 | 长沙中央空调维修,中央空调清洗维保,空气能热水工程,价格,公司就找维小保-湖南维小保环保科技有限公司 | 东莞韩创-专业绝缘骨架|马达塑胶零件|塑胶电机配件|塑封电机骨架厂家 | 上海小程序开发-上海小程序制作公司-上海网站建设-公众号开发运营-软件外包公司-咏熠科技 | 河南空气能热水器-洛阳空气能采暖-洛阳太阳能热水工程-洛阳润达高科空气能商行 | 山东集装箱活动房|济南集装箱活动房-济南利森集装箱有限公司 | 粤丰硕水性环氧地坪漆-防静电自流平厂家-环保地坪涂料代理 | 啤酒设备-小型啤酒设备-啤酒厂设备-济南中酿机械设备有限公司 | 在线浊度仪_悬浮物污泥浓度计_超声波泥位计_污泥界面仪_泥水界面仪-无锡蓝拓仪表科技有限公司 | 重庆磨床过滤机,重庆纸带过滤机,机床伸缩钣金,重庆机床钣金护罩-重庆达鸿兴精密机械制造有限公司 | 网站制作优化_网站SEO推广解决方案-无锡首宸信息科技公司 | 依维柯自动挡房车,自行式国产改装房车,小型房车价格,中国十大房车品牌_南京拓锐斯特房车 - 南京拓锐斯特房车 |