網(wǎng)站首頁(yè) 編程語(yǔ)言 正文
1.使用float
.use-float>div:first-child{
width:100px;
float:left;
}
.use-float>div:last-child{
overflow:hidden;
}
2.使用table
.use-table{
border-collapse:collapse;
width:100%;
}
.use-table>tbody>tr>td:first-child{
width:100px;
}
3.使用div模擬table?
.use-mock-table{
display:table;
width:100%;
}
.use-mock-table>div{
display:table-cell;
}
.use-mock-table>div:first-child{
width:100px;
}
4.使用flex
.use-flex{
display:flex;
}
.use-flex>div:first-child{
flex:none;
width:100px;
}
.use-flex>div:last-child{
flex:1;
}
?
原文鏈接:https://blog.csdn.net/qq_38397397/article/details/90182600
相關(guān)推薦
- 2023-03-27 Python?tkinter中l(wèi)abel控件動(dòng)態(tài)改變值問(wèn)題_python
- 2022-06-26 django中模板繼承與ModelForm實(shí)例詳解_python
- 2023-06-18 C#Process的OutputDataReceived事件不觸發(fā)問(wèn)題及解決_C#教程
- 2024-03-21 解決SpringBoot項(xiàng)目中的報(bào)錯(cuò):Could not autowire,no beans of
- 2024-02-17 BDD - Python Behave 用戶自定義配置文件
- 2023-04-21 深入理解Python中__init__.py文件_python
- 2022-10-07 Android?Gradle?三方依賴管理詳解_Android
- 2022-05-13 Github pages 同步到Gitee pages 并自動(dòng)更新Gitee pages
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細(xì)win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運(yùn)行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲(chǔ)小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運(yùn)算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認(rèn)證信息的處理
- Spring Security之認(rèn)證過(guò)濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯(cuò)誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實(shí)現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡(jiǎn)單動(dòng)態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對(duì)象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊(duì)列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支