網(wǎng)站首頁 編程語言 正文
CSS中的常用復合寫法? ??
-
字體屬性的復合寫法
- 外邊距(margin)的復合寫法
- 內(nèi)邊距(padding)的復合寫法
- 邊框的復合寫法
- 背景圖片的復合寫法
- 邊框圓角border-radius
- 盒子陰影box-shadow:
表格常用的屬性:
屬性 | 含義 |
cellpadding=“5px” | 表格內(nèi)容和單元格邊緣之間的距離為5px |
cellspacing=“0” | 單元格之間的距離 |
border-collapse: collapse | 合并相鄰的邊框 |
colspan=“2” | 合并行 |
rowspan=“2” | 合并列 |
字體屬性
font:font-style font-weight font-size/line-height font-family;?
背景圖片的復合寫法:
background: black url(“images/logo.jpg”) no-repeat fixed center top;
邊框的復合寫法:
border:5px solid red;
內(nèi)(外)邊距的復合寫法:
寫法 | 說明 |
padding: 1px; | 一個參數(shù),說明上下左右都有1像素的內(nèi)邊距 |
padding: 1px 2px; | 兩個參數(shù),說明上下內(nèi)邊距是1像素,左右內(nèi)邊距是2像素 |
padding: 1px 2px 3px; | 三個參數(shù),說明上內(nèi)邊距是1像素,左右內(nèi)邊距是2像素,下內(nèi)邊距是3像素 |
padding: 1px 2px 3px 4px; | 四個參數(shù),此時按順時針方向匹配值,上內(nèi)邊距是1像素,右內(nèi)邊距是2像素,下內(nèi)邊距是3像素,左內(nèi)邊距是4像素 |
背景圖片的復合寫法
背景圖片的復合寫法:background: black url(“images/logo.jpg”) no-repeat fixed center top;
邊框圓角border-radius:
? ? ? ?左上角,右上角,右下角,左下角。
盒子陰影box-shadow:
??box-shadow:h-shadow, v--shodow, blur, spread, color
box-shadow: 水平陰影,垂直陰影, 虛實,陰影大小, 顏色(寫成透明)
?文字陰影text-shadow:
text-shadow:?h-shadow v-shadow blur color;
原文鏈接:https://blog.csdn.net/weixin_46253682/article/details/125103929
相關推薦
- 2022-06-01 Python學習之內(nèi)置函數(shù)總結_python
- 2022-09-14 Python詳解如何動態(tài)給對象增加屬性和方法_python
- 2023-12-07 ant 循環(huán)多條通知提醒框堆疊問題
- 2022-07-18 C++函數(shù)模板和類模板詳解
- 2022-06-08 FreeRTOS實時操作系統(tǒng)在Cortex-M3上的移植過程_操作系統(tǒng)
- 2022-04-18 2.* 版本taro引入 taro-ui編譯小程序階段報錯, Module not found: C
- 2023-07-26 TypeScript的類型推導
- 2023-03-01 shell?sleep睡眠命令的具體使用_linux shell
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細win安裝深度學習環(huán)境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結構-簡單動態(tài)字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支