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

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

html表格中的圓角輪廓偏移

html表格中的圓角輪廓偏移

動漫人物 2022-05-22 19:16:32
當(dāng)我嘗試對 html 表格中的每個數(shù)字進行四舍五入時,我申請了outline-offset.看起來形狀不是圓形的。有沒有圓形和四舍五入的方法aqua?謝謝.color {    background-color: rgb(0,255,0);    border-radius: 10px;    outline: 3px solid aqua;    outline-offset: -3px;}<table><tr><td class=color>1</td><td class=color>2</td><td class=color>3</td></tr></table>
查看完整描述

2 回答

?
慕容3067478

TA貢獻1773條經(jīng)驗 獲得超3個贊

您不能將outline.


table-cell樣式不允許典型div或span標記可以具有的所有樣式。將您的單元格數(shù)據(jù)嵌套在另一個元素中并在其上設(shè)置樣式。


table {

  border: 3px solid orange;

}


td {

  padding: 0.25em;

}


.color {

  background-color: rgb(0, 255, 0);

  border-radius: 10px; /* around the border */

  border: 3px solid red; /* inside the outline, outside the padding */

  outline: 3px solid aqua; /* inside the cell, outside the offset/border */

  outline-offset: 3px; /* inside the outline, outside the border */

  padding: 0.25em; /* inside the border */

  margin: 3px; /* inside the cell, outside the outline */

}

<table>

  <tr>

    <td><div class="color">1</div></td>

    <td><div class="color">2</div></td>

    <td><div class="color">3</div></td>

  </tr>

</table>


查看完整回答
反對 回復(fù) 2022-05-22
?
GCT1015

TA貢獻1827條經(jīng)驗 獲得超4個贊

要對每個數(shù)字進行四舍五入,請使用以下代碼片段。


#rcorners1 {

  border-radius:85px;

  padding: 10px; 

  width: 20px;

  height: 15px;  

   background-color: rgb(0,255,0);

  

<table>

<tr>

<td class=rcorners1 id=rcorners1>1</td>

<td class=rcorners1 id=rcorners1>2</td>

<td class=rcorners1 id=rcorners1>3</td>


</tr>

</table>


查看完整回答
反對 回復(fù) 2022-05-22
  • 2 回答
  • 0 關(guān)注
  • 164 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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