第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

請問CSS-只顯示角邊框

請問CSS-只顯示角邊框

慕的地6264312 2019-07-31 13:00:07
CSS-只顯示角邊框  我想知道是否可以在CSS或jQuery中設置邊框,但只用于角落。就像這樣:****                         *****                               **                               *             CONTENT*                               **                               *****                         ****
查看完整描述

3 回答

?
繁花如伊

TA貢獻2012條經驗 獲得超12個贊

假設<div id="content">CONTENT</div>而那CONTENT包括至少一個HTML節(jié)點。

#content {position:relative}#content:before, #content:after, #content>:first-child:before, #content>:first-child:after {
    position:absolute; content:' ';
    width:80px; height: 80px;
    border-color:red; /* or whatever colour */
    border-style:solid; /* or whatever style */}#content:before {top:0;left:0;border-width: 1px 0 0 1px}#content:
    after {top:0;right:0;border-width: 1px 1px 0 0}#content>:first-child:before {bottom:0;right:0;border-width: 0 1px 1px 0}#content>:
    first-child:after {bottom:0;left:0;border-width: 0 0 1px 1px}

這是一個小提琴



查看完整回答
反對 回復 2019-08-02
?
呼如林

TA貢獻1798條經驗 獲得超3個贊

SVG

這是另一個很好的選擇,如果您現在想要開始使用向量,以允許很好的響應。


<svg viewBox="0 0 100 100" width="50px">

  <path d="M25,2 L2,2 L2,25" fill="none" stroke="black" stroke-width="3" />

  <path d="M2,75 L2,98 L25,98" fill="none" stroke="black" stroke-width="3" />

  <path d="M75,98 L98,98 L98,75" fill="none" stroke="black" stroke-width="3" />

  <path d="M98,25 L98,2 L75,2" fill="none" stroke="black" stroke-width="3" />

</svg>

SVG是一個很好的工具。在這種情況下使用SVG的一些優(yōu)點是:

  • 曲線控制
  • 填充控制(不透明度,顏色)
  • 筆畫控制(寬度,不透明度,顏色)
  • 代碼量
  • 構建和維護形狀的時間
  • 可伸縮
  • 沒有HTTP請求(如果使用內聯,如示例所示)

瀏覽器支持有關內聯SVG返回到InternetExplorer 9。卡尼烏斯想了解更多信息。



查看完整回答
反對 回復 2019-08-02
  • 3 回答
  • 0 關注
  • 961 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號