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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

我怎樣才能讓我的漢堡菜單更小,并在它周圍有一個(gè)完美的圓形邊框?

我怎樣才能讓我的漢堡菜單更小,并在它周圍有一個(gè)完美的圓形邊框?

江戶川亂折騰 2022-01-07 16:38:09
我正在嘗試使我的漢堡菜單更?。ǜ叨群蛯挾龋⑶椅乙呀?jīng)嘗試了一段時(shí)間并使其更小但由于某種原因無(wú)法弄清楚如何使其更小。我也在努力嘗試在它周圍制作一個(gè)完美的圓形邊框。有人可以幫我嗎?我在 codepen 中找到了這段代碼并對(duì)其進(jìn)行了一些調(diào)整,但我正在努力讓它恰到好處。jsfiddle:https ://jsfiddle.net/annahisenberg/ft10ersb/6/JS代碼:class Drag extends React.Component {  constructor(props) {    super(props);    this.state = {      x: this.props.x,      y: this.props.y,      showMoreOptionsPopup: false,      showHelpModal: false    };    this.reff = React.createRef();    this.dragMouseDown = this.dragMouseDown.bind(this);    this.elementDrag = this.elementDrag.bind(this);    this.closeDragElement = this.closeDragElement.bind(this);    this.showMoreOptionsPopup = this.showMoreOptionsPopup.bind(this);  }  componentDidMount() {    this.pos1 = 0;    this.pos2 = 0;    this.pos3 = 0;    this.pos4 = 0;  }  dragMouseDown(e) {    e.preventDefault();    this.pos3 = e.clientX;    this.pos4 = e.clientY;    document.onmouseup = this.closeDragElement;    document.onmousemove = this.elementDrag;  };  elementDrag(e) {    e.preventDefault();    this.pos1 = this.pos3 - e.clientX;    this.pos2 = this.pos4 - e.clientY;    this.pos3 = e.clientX;    this.pos4 = e.clientY;    this.setState({      y: this.reff.current.offsetTop - this.pos2 + "px",      x: this.reff.current.offsetLeft - this.pos1 + "px"    });  };  closeDragElement() {    document.onmouseup = null;    document.onmousemove = null;  };  showMoreOptionsPopup() {    this.setState({      showMoreOptionsPopup: !this.state.showMoreOptionsPopup    });  };render() {    return (      <div>        {this.state.showMoreOptionsPopup && (          <div            id="more_options_popup"            style={{              left: this.reff.current.offsetLeft - 170 + "px",              top: this.reff.current.offsetTop - 130 + "px"            }}          >           <p>Help Doc</p>           <p>Help Doc 2</p>           <p>Help Doc 3</p>          </div>        )}
查看完整描述

1 回答

?
慕的地8271018

TA貢獻(xiàn)1796條經(jīng)驗(yàn) 獲得超4個(gè)贊

您必須調(diào)整所有適當(dāng)?shù)?CSS 屬性才能獲得所需的大小。你讓它們分布在許多不同的規(guī)則上,并且以一種奇怪的方式使用絕對(duì)定位/邊距,所以這并不簡(jiǎn)單,但我在這里做了一個(gè)基本的嘗試

您需要減少width主菜單 div 的height,其偽元素的 ,以及減少它們的邊距和用于將其定位在 div 內(nèi)的邊距,然后添加邊框。


查看完整回答
反對(duì) 回復(fù) 2022-01-07
  • 1 回答
  • 0 關(guān)注
  • 177 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)