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

  • <legend id='4rn9u'><style id='4rn9u'><dir id='4rn9u'><q id='4rn9u'></q></dir></style></legend>
      <bdo id='4rn9u'></bdo><ul id='4rn9u'></ul>

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

      1. CSS垂直旋轉文本 - 兩側的額外空間

        CSS Rotate Text Vertical - Extra Space on both sides(CSS垂直旋轉文本 - 兩側的額外空間)
          <tbody id='PXrtX'></tbody>
        <i id='PXrtX'><tr id='PXrtX'><dt id='PXrtX'><q id='PXrtX'><span id='PXrtX'><b id='PXrtX'><form id='PXrtX'><ins id='PXrtX'></ins><ul id='PXrtX'></ul><sub id='PXrtX'></sub></form><legend id='PXrtX'></legend><bdo id='PXrtX'><pre id='PXrtX'><center id='PXrtX'></center></pre></bdo></b><th id='PXrtX'></th></span></q></dt></tr></i><div class="dxbntdt" id='PXrtX'><tfoot id='PXrtX'></tfoot><dl id='PXrtX'><fieldset id='PXrtX'></fieldset></dl></div>
      2. <small id='PXrtX'></small><noframes id='PXrtX'>

            • <bdo id='PXrtX'></bdo><ul id='PXrtX'></ul>

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

                • <tfoot id='PXrtX'></tfoot>
                  本文介紹了CSS垂直旋轉文本 - 兩側的額外空間的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  當我使用 TEXT 旋轉和內聯圖層時,它會在旋轉時增加額外的空間(大文本的寬度),我不想修復.使用 CSS 旋轉時避免兩側多余空間(元素寬度)的最佳方法是什么.

                  When I rotate and inline layer with TEXT, it adds extra space (width of large text) on the rotation, I dont want to fix. What is the best way to avoid extra space (width of element) on both sides when rotating with CSS.

                  以下是我的代碼:

                  .rotate {
                    display: inline-block;
                    white-space: nowrap;
                    transform: translate(0, 100%) rotate(-90deg);
                    transform-origin: 0 0;
                    vertical-align: bottom;
                  }
                  
                  .rotate:before {
                    content: "";
                    float: left;
                    margin-top: 100%;
                  }
                  
                  .rotate:after {
                    content: "";
                    display: inline-block;
                  }

                  <div style="display:inline-block; position:relative;" class="rotate">
                    <span style="displock;width:100%;font-size: 55px;color: #222222;opacity: 0.15;white-space: nowrap;">BACKGROUND</span>
                    <span style="display:block;width:100%;font-size: 45px;color: #222222;text-align:center;">TITLE</span>
                  
                  </div>
                  Some randome text here should be close to the rotated element Some randome text here should be close to the rotated element Some randome text here should be close to the rotated element

                  推薦答案

                  您可以嘗試使用 寫作模式 .

                  You may try to use writing-mode .

                  writing-mode CSS 屬性定義文本行是水平還是垂直布局,以及塊前進的方向.

                  The writing-mode CSS property defines whether lines of text are laid out horizontally or vertically and the direction in which blocks progress.

                  https://codepen.io/gc-nomade/pen/rGJGzQ?editors=1100

                  .rotate {
                    writing-mode:vertical-rl;
                    transform:scale(-1);
                    width:50px;
                    margin-right:50px;
                  }
                  
                  body {
                    display:flex;
                    align-items:flex-end; 
                  }

                  <div style="display:inline-block; position:relative;" class="rotate">
                    <span style="displock;width:100%;font-size: 55px;color: #222222;opacity: 0.15;white-space: nowrap;">BACKGROUND</span>
                    <span style="display:block;width:100%;font-size: 45px;color: #222222;text-align:center;">TITLE</span>
                  
                  </div>
                  Some randome text here should be close to the rotated element Some randome text here should be close to the rotated element Some randome text here should be close to the rotated element

                  transform:rotate(-90deg) (這是您的首選),但使用偽來根據文本長度重置高度.(這需要使用 rgba() 顏色并將兩行文本設置在一個容器中.https://codepen.io/gc-nomade/pen/RLQLJG?editors=1100

                  or transform:rotate(-90deg) (which was your first choice), but with a pseudo to reset height according to text-length. (this requires to use rgba() colors and set both line of text in a single container. https://codepen.io/gc-nomade/pen/RLQLJG?editors=1100

                  .rotate {
                    width:110px;
                  }
                  .rotate>span   {
                    display:inline-block; 
                    transform:rotate(-90deg)
                  }
                  .rotate > span:before {
                    content:'';
                    padding-top:100%;
                    float:left;
                  }
                  
                  body {
                    display:flex;
                    align-items:flex-end;
                    justify-content:flex-start;
                  }

                  			<div style="display:inline-block; position:relative;" class="rotate">
                  				<span style=" font-size: 55px;color: rgba(0,0,0,0.15);white-space: nowrap;">BACKGROUND<br/>
                  				<span style="display:block;font-size: 45px;color: #222222;text-align:center;">TITLE</span></span>				
                  			</div>
                        Some randome text here should be close to the rotated element Some randome text here should be close to the rotated element Some randome text here should be close to the rotated element

                  兩種技術需要為旋轉文本容器設置寬度,并且是從彈性容器構建的.它應該可以在 IE、FF、Chrome 中運行.(display:table/table-cell 可以是舊瀏覽器的另一個 display 選項)

                  Both technics here, requires to set a width to the rotating text container and are build from a flex container. It should work in IE,FF,Chrome. (display:table/table-cell can be another display option for older browser)

                  這篇關于CSS垂直旋轉文本 - 兩側的額外空間的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='Qc9rq'></small><noframes id='Qc9rq'>

                      <bdo id='Qc9rq'></bdo><ul id='Qc9rq'></ul>
                    • <legend id='Qc9rq'><style id='Qc9rq'><dir id='Qc9rq'><q id='Qc9rq'></q></dir></style></legend>

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

                          <tfoot id='Qc9rq'></tfoot>
                          • 主站蜘蛛池模板: 高压负荷开关-苏州雷尔沃电器有限公司 | 砂石生产线_石料生产线设备_制砂生产线设备价格_生产厂家-河南中誉鼎力智能装备有限公司 | 学校用栓剂模,玻璃瓶轧盖钳,小型安瓿熔封机,实验室安瓿熔封机-长沙中亚制药设备有限公司 | 衬氟旋塞阀-卡套旋塞阀-中升阀门首页| 铣刨料沥青破碎机-沥青再生料设备-RAP热再生混合料破碎筛分设备 -江苏锡宝重工 | IWIS链条代理-ALPS耦合透镜-硅烷预处理剂-上海顶楚电子有限公司 lcd条形屏-液晶长条屏-户外广告屏-条形智能显示屏-深圳市条形智能电子有限公司 | 滁州高低温冲击试验箱厂家_安徽高低温试验箱价格|安徽希尔伯特 | 浙江美尔凯特智能厨卫股份有限公司 | 北京征地律师,征地拆迁律师,专业拆迁律师,北京拆迁律师,征地纠纷律师,征地诉讼律师,征地拆迁补偿,拆迁律师 - 北京凯诺律师事务所 | 电渗析,废酸回收,双极膜-山东天维膜技术有限公司 | 耐高温风管_耐高温软管_食品级软管_吸尘管_钢丝软管_卫生级软管_塑料波纹管-东莞市鑫翔宇软管有限公司 | 粉末冶金-粉末冶金齿轮-粉末冶金零件厂家-东莞市正朗精密金属零件有限公司 | 电镀标牌_电铸标牌_金属标贴_不锈钢标牌厂家_深圳市宝利丰精密科技有限公司 | 深圳市简易检测技术有限公司| 烟气在线监测系统_烟气在线监测仪_扬尘检测仪_空气质量监测站「山东风途物联网」 | 耐火浇注料-喷涂料-浇注料生产厂家_郑州市元领耐火材料有限公司 耐力板-PC阳光板-PC板-PC耐力板 - 嘉兴赢创实业有限公司 | 威海防火彩钢板,威海岩棉复合板,威海彩钢瓦-文登区九龙岩棉复合板厂 | 长江船运_国内海运_内贸船运_大件海运|运输_船舶运输价格_钢材船运_内河运输_风电甲板船_游艇运输_航运货代电话_上海交航船运 | 双能x射线骨密度检测仪_dxa骨密度仪_双能x线骨密度仪_品牌厂家【品源医疗】 | 迪威娱乐|迪威娱乐客服|18183620002 | 电加热导热油炉-空气加热器-导热油加热器-翅片电加热管-科安达机械 | 浙江红酒库-冰雕库-气调库-茶叶库安装-医药疫苗冷库-食品物流恒温恒湿车间-杭州领顺实业有限公司 | 电池挤压试验机-自行车喷淋-车辆碾压试验装置-深圳德迈盛测控设备有限公司 | 中药超微粉碎机(中药细胞级微粉碎)-百科 | 全自动在线分板机_铣刀式在线分板机_曲线分板机_PCB分板机-东莞市亿协自动化设备有限公司 | 定做大型恒温循环水浴槽-工业用不锈钢恒温水箱-大容量低温恒温水槽-常州精达仪器 | SOUNDWELL 编码器|电位器|旋转编码器|可调电位器|编码开关厂家-广东升威电子制品有限公司 | 青岛代理记账_青岛李沧代理记账公司_青岛崂山代理记账一个月多少钱_青岛德辉财税事务所官网 | 骨龄仪_骨龄检测仪_儿童骨龄测试仪_品牌生产厂家【品源医疗】 | 压接机|高精度压接机|手动压接机|昆明可耐特科技有限公司[官网] 胶泥瓷砖胶,轻质粉刷石膏,嵌缝石膏厂家,腻子粉批发,永康家德兴,永康市家德兴建材厂 | 贴片电容-贴片电阻-二三极管-国巨|三星|风华贴片电容代理商-深圳伟哲电子 | 进口消泡剂-道康宁消泡剂-陶氏消泡剂-大洋消泡剂 | LNG鹤管_内浮盘价格,上装鹤管,装车撬厂家-连云港赛威特机械 | 涡街流量计_LUGB智能管道式高温防爆蒸汽温压补偿计量表-江苏凯铭仪表有限公司 | 回转支承-转盘轴承-回转驱动生产厂家-洛阳隆达轴承有限公司 | 搜活动房网—活动房_集装箱活动房_集成房屋_活动房屋 | 北京律师咨询_知名专业北京律师事务所_免费法律咨询 | 气胀轴|气涨轴|安全夹头|安全卡盘|伺服纠偏系统厂家-天机传动 | 山东聚盛新型材料有限公司-纳米防腐隔热彩铝板和纳米防腐隔热板以及钛锡板、PVDF氟膜板供应商 | 昆山新莱洁净应用材料股份有限公司-卫生级蝶阀,无菌取样阀,不锈钢隔膜阀,换向阀,离心泵 | 广东恩亿梯电源有限公司【官网】_UPS不间断电源|EPS应急电源|模块化机房|电动汽车充电桩_UPS电源厂家(恩亿梯UPS电源,UPS不间断电源,不间断电源UPS) |