網站首頁 編程語言 正文
CSS中的常用復合寫法? ??
-
字體屬性的復合寫法
- 外邊距(margin)的復合寫法
- 內邊距(padding)的復合寫法
- 邊框的復合寫法
- 背景圖片的復合寫法
- 邊框圓角border-radius
- 盒子陰影box-shadow:
表格常用的屬性:
屬性 | 含義 |
cellpadding=“5px” | 表格內容和單元格邊緣之間的距離為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;
內(外)邊距的復合寫法:
寫法 | 說明 |
padding: 1px; | 一個參數,說明上下左右都有1像素的內邊距 |
padding: 1px 2px; | 兩個參數,說明上下內邊距是1像素,左右內邊距是2像素 |
padding: 1px 2px 3px; | 三個參數,說明上內邊距是1像素,左右內邊距是2像素,下內邊距是3像素 |
padding: 1px 2px 3px 4px; | 四個參數,此時按順時針方向匹配值,上內邊距是1像素,右內邊距是2像素,下內邊距是3像素,左內邊距是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-11-23 Golang?Defer基礎操作詳解_Golang
- 2022-10-27 python使用pika庫調用rabbitmq參數使用詳情_python
- 2022-09-05 docker-compose啟動redis集群的實現步驟_docker
- 2024-02-16 SpringBoot 事務管理Transactional 數據回滾 數據一致性
- 2022-07-11 pandas的排序、分組groupby及cumsum累計求和方式_python
- 2022-04-26 jQuery實現鎖定頁面元素(表格列)_jquery
- 2022-05-25 Entity?Framework?Core對Web項目生成數據庫表_實用技巧
- 2022-11-17 使用flutter的showModalBottomSheet遇到的坑及解決_Android
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支