跳转到帖子
在手机APP中查看

一个更好的浏览方法。了解更多

OKCCN - XenForo & IPS Plugin Marketplace

主屏幕上的全屏APP,带有推送通知、徽章等。

在iOS和iPadOS上安装此APP
  1. 在Safari中轻敲分享图标
  2. 滚动菜单并轻敲添加到主屏幕
  3. 轻敲右上角的添加按钮。
在安卓上安装此APP
  1. 轻敲浏览器右上角的三个点菜单 (⋮) 。
  2. 轻敲添加到主屏幕安装APP
  3. 轻敲安装进行确认。
  • 选择语言

所有动态

此动态墙会自动更新

  1. 一小时前
  2. Cavalry发布一篇记录在 IPS
    清理冗余注释,提升代码可读性 移除不必要的调试日志 优化异常处理逻辑 代码结构精简约21%
  3. Cavalry发布一篇记录在 IPS
    1.原因: 避免频繁调用 QQ API 导致错误 影响: 用户头像不再自动同步,但首次登录时仍会获取 代码位置: syncOptions() 方法 2.修改: 添加 try-catch 块 效果: QQ API 失败时返回 NULL,不会中断整个同步任务 日志: 失败时记录到 qqlogin_error 日志 3.修改: 添加 try-catch 块 效果: 昵称获取失败时返回 NULL,不会中断同步 日志: 失败时记录到 qqlogin_error 日志 4.问题: API 完全失败时返回的数据缺少 nickname 字段 修复: fallback 数据现在包含自动生成的默认昵称 效果: 确保数据完整性,避免后续错误
  4. 今天
  5. QQ登录是一款专为 Invision Community 5.x 打造的第三方登录插件,支持用户通过腾讯QQ一键快捷登录社区,提升注册转化率,优化用户体验。插件由火牛开发,兼容最新IPS内核,安全稳定,易于集成。
  6. 昨天
  7. 安全 回调通知验证支付金额 回调通知验证 app_id 状态接口增加登录验证 状态接口增加订单归属验证 签名失败时抛出异常 公钥加载校验返回值 签名 base64 解码严格校验 验签结果区分错误与失败 out_trade_no 使用时序安全比较
  8. 性能优化支付状态轮询改为指数退避算法(1s→1.5s→2s...最大5s) 移除生产环境调试日志(只在 IN_DEV 模式记录) 优化数据库查询(使用 gw_id 直接查询,移除 LIKE 模糊查询) CURL 超时从 30 秒增加到 60 秒 添加连接超时 10 秒 新增功能交易 extra 数据添加 alipay_created_time 字段 交易 extra 数据添加 alipay_buyer_id 字段 交易 extra 数据添加 alipay_receipt_amount 字段 支付页面超时提示(10 分钟) 支付成功延迟跳转(1.5 秒显示成功消息)
  9. 本支付网关应用支持自动跟随用户系统的明暗模式设置: - 🌞 **明亮模式**:系统为明亮模式时显示 - 🌙 **暗黑模式**:系统为暗黑模式时显示
  10. 更新支付页面显示逻辑 适配在暗色页面的显示效果 跟随系统明暗色系的转换
  11. IPS-支付宝当面付网关应用 (okalipayqr) 适用于没有企业版的个人支付宝账户收款。使用支付宝官方API,没有中间商,保证资金支付安全!
  12. 增加积分购买升级用户组 多货币设置升级用户组 支付网关货币由固定列表升级为动态下拉,自动按系统可用货币与已启用支付方式联动展示。 后台保存校验行为统一,减少因配置顺序不同导致的误判与绕过。
  13. 多货币定价功能(新功能)
  14. HuoNiu Credits System
  15. Cavalry发布一条记录在 XenForo
    HuoNiu Credits System - 积分系统是一款功能强大的 XenForo 2.x 虚拟货币插件,为您的论坛提供完整的积分经济系统。支持多货币管理、用户间转账、文件续订、红包发放、悬赏问答、付费内容查看、资源付费下载以及在线充值等功能。
  16. Cavalry发布一篇记录在 IPS
    修复"积分价格"字段错误出现在 Nexus 商城商品表单中的问题(Nexus 已有独立定价体系) 修复"积分价格"字段错误出现在 私信会话表单中的问题 修复"积分价格"字段错误出现在 系统警告/提醒表单中的问题
  17. Cavalry发布一篇记录在 IPS
    修复充值支付后积分未到账问题(TypeError 类型错误导致 onPaid() 中断) 修复充值通知重复发送问题(现在只显示"充值成功"一条) 修复 ACP 后台权限键名不匹配问题(5 个管理模块) 修复交易筛选条件与实际 type 值不符问题 修复签到/文件出售时通知重复发送问题 修复余额操作存在竞态条件问题(改为 SQL 原子更新) 修复转账操作缺少数据库事务保护问题 修复 Nexus 扩展未注册导致充值项目无法识别问题 修复 ACP 手动调整积分使用了硬编码 type 字符串问题 清理 5 个无对应逻辑的孤儿设置项 修复全新安装时缺少 credits_balance 列创建问题(致命) 修复全新安装时缺少前台导航菜单添加问题 修复安装脚本使用废弃方法名 installCustom 问题 新增转账和文件购买友好 URL
  18. HuoNiu Credits System 是专为 Invision Community (IPS) 打造的完整积分系统,提供从积分获取、消费到管理的全套功能。无论是激励用户活跃度,还是构建社区经济体系,都能轻松实现!
  19. 我们发布了 XenForo 2.3.9 版本,以解决近期收到的一些潜在安全漏洞报告。此版本仅包含安全修复,之前承诺包含在 2.3.9 版本中的任何错误修复都将推迟到 2.3.10 版本发布。 所有已授权客户现在均可下载此版本。我们强烈建议所有运行 XenForo 2.3 早期版本的客户升级到此版本,以获得更高的稳定性。
  20. 内容包括: 修复客户端已调整 EXIF 方向时仍会设置 EXIF 方向的问题 修复实体类型提示方面的一些问题 允许在只读方法名称中使用下划线分隔单词 修复空的用户授权应用程序列表容器 确保在生成活动摘要电子邮件之间始终恢复语言状态。 修复过滤器 JS 查询参数连接问题 允许在本地主机上创建通行密钥。
  21. Cavalry发布一篇记录在 IPS
    这是我们三月份的维护版本。 主要变化包括: 新增:完成个人资料的成就动作。 已更新:屏幕阅读器的用户界面辅助功能。 更新:现在可以从搜索结果中删除过往事件。
  22. Cavalry发布一篇记录在 IPS
    主要变化包括: 统计数据改进 新增“用户访问频率”统计数据。 新增“用户成就点数”统计数据。 改进的电子邮件布局**,包括在支持的电子邮件客户端中支持深色模式。 改进了导航下拉菜单、移动菜单和工具提示的用户界面。
  23. Cavalry发布一篇记录在 IPS
    Invision Community 5.0.12
  24. Cavalry发布一篇记录在 IPS
    Invision Community 5.0.11Invision Community 5.0.11Invision Community 5.0.11
  25. 前几天
  26. CSS Browser Support Reference CSS Reference With Browser Support The table below lists all CSS properties and how each property is supported in the different browsers: The number to the right of the browser icon indicates in which browser version the property was first supported. Property Edge Firefox Chrome Safari Opera A accent-color 93 92 93 15.4 79 align-content 16 52 57 10.1 44 align-items 16 52 57 10.1 44 align-self 16 52 57 10.1 44 all 79 27 37 9.1 24 animation 10 16 43 9 30 animation-delay 10 16 43 9 30 animation-direction 10 16 43 9 30 animation-duration 10 16 43 9 30 animation-fill-mode 10 16 43 9 30 animation-iteration-count 10 16 43 9 30 animation-name 10 16 43 9 30 animation-play-state 10 16 43 9 30 animation-timing-function 10 16 43 9 30 aspect-ratio 88 89 88 15 74 B backdrop-filter 79 103 76 9 63 backface-visibility 12 16 36 15.4 23 background 4 1 1 1 3.5 background-attachment 4 1 1 1 3.5 background-blend-mode 79 30 35 7.1 22 background-clip 9 4 4 3 10.5 background-color 4 1 1 1 3.5 background-image 4 1 1 1 3.5 background-origin 9 4 4 3 10.5 background-position 4 1 1 1 3.5 background-position-x 12 49 1 1 15 background-position-y 12 49 1 1 15 background-repeat 4 1 1 1 3.5 background-size 9 4 4 4.1 10 block-size 79 41 57 12.1 44 border 4 1 1 1 3.5 border-block 87 66 87 14.1 73 border-block-color 87 66 87 14.1 73 border-block-end 79 41 69 12.1 56 border-block-end-color 79 41 69 12.1 56 border-block-end-style 79 41 69 12.1 56 border-block-end-width 79 41 69 12.1 56 border-block-start 79 41 69 12.1 56 border-block-start-color 79 41 69 12.1 56 border-block-start-style 79 41 69 12.1 56 border-block-start-width 79 41 69 12.1 56 border-block-style 87 66 87 14.1 73 border-block-width 87 66 87 14.1 73 border-bottom 4 1 1 1 3.5 border-bottom-color 4 1 1 1 3.5 border-bottom-left-radius 9 4 5 5 10.5 border-bottom-right-radius 9 4 5 5 10.5 border-bottom-style 5.5 1 1 1 9.2 border-bottom-width 4 1 1 1 3.5 border-collapse 5 1 1 1.2 4 border-color 4 1 1 1 3.5 border-end-end-radius 89 66 89 15 75 border-end-start-radius 89 66 89 15 75 border-image 11 15 16 6 15 border-image-outset 11 15 15 6 15 border-image-repeat 11 15 15 6 15 border-image-slice 11 15 15 6 15 border-image-source 11 15 15 6 15 border-image-width 11 13 15 6 15 border-inline 87 66 87 14.1 73 border-inline-color 87 66 87 14.1 73 border-inline-end 79 41 69 12.1 56 border-inline-end-color 79 41 69 12.1 56 border-inline-end-style 79 41 69 12.1 56 border-inline-end-width 79 41 69 12.1 56 border-inline-start 79 41 69 12.1 56 border-inline-start-color 79 41 69 12.1 56 border-inline-start-style 79 41 69 12.1 56 border-inline-start-width 79 41 69 12.1 56 border-inline-style 87 66 87 14.1 73 border-inline-width 87 66 87 14.1 73 border-left 4 1 1 1 3.5 border-left-color 4 1 1 1 3.5 border-left-style 5.5 1 1 1 9.2 border-left-width 4 1 1 1 3.5 border-radius 9 4 5 5 10.5 border-right 4 1 1 1 3.5 border-right-color 4 1 1 1 3.5 border-right-style 5.5 1 1 1 9.2 border-right-width 4 1 1 1 3.5 border-spacing 8 1 1 1 4 border-start-end-radius 89 66 89 15 75 border-start-start-radius 89 66 89 15 75 border-style 4 1 1 1 3.5 border-top 4 1 1 1 3.5 border-top-color 4 1 1 1 3.5 border-top-left-radius 9 4 5 5 10.5 border-top-right-radius 9 4 5 5 10.5 border-top-style 5.5 1 1 1 9.2 border-top-width 4 1 1 1 3.5 border-width 4 1 1 1 3.5 bottom 5 1 1 1 6 box-decoration-break 79 32 22 6.1 15 box-shadow 9 4 10 5.1 10.5 box-sizing 8 29 10 5.1 9.5 break-after 10 65 50 10 37 break-before 10 65 50 10 37 break-inside 10 65 50 10 37 C caption-side 8 1 1 1 4 caret-color 79 53 57 11.1 44 @charset 12 1.5 2 4 9 clear 5 1 1 1 6 clip 8 1 1 1 7 clip-path 79 3.5 55 9.1 42 color 3 1 1 1 3.5 color-scheme 81 96 81 13 68 column-count 10 52 50 9 37 column-fill 10 52 50 10 37 column-gap 84 63 84 14.1 70 column-rule 10 52 50 9 37 column-rule-color 10 52 50 9 37 column-rule-style 10 52 50 9 37 column-rule-width 10 52 50 9 37 column-span 10 71 50 9 37 column-width 10 52 50 9 37 columns 10 52 50 9 37 @container 105 110 105 16 91 content 8 1 1 1 4 counter-increment 8 2 4 3.1 9.6 counter-reset 8 2 4 3.1 9.6 counter-set 85 68 85 17.2 71 @counter-style 91 33 91 17 77 cursor 5.5 4 5 5 9.6 D direction 5.5 1 2 1.3 9.2 display 8 3 4 3.1 7 E empty-cells 8 1 1 1.2 4 F filter 13 35 53 9.1 40 flex 11 28 29 9 17 flex-basis 11 28 29 9 17 flex-direction 11 28 29 9 17 flex-flow 11 28 29 9 17 flex-grow 11 28 29 9 17 flex-shrink 11 28 29 9 17 flex-wrap 11 28 29 9 17 float 4 1 1 1 7 font 4 1 1 1 3.5 @font-face 9 3.5 4 3.1 10 font-family 4 1 1 1 3.5 font-feature-settings 10 34 48 9.1 35 @font-feature-values 34 font-kerning 79 34 33 9.1 20.1 font-language-override 34 @font-palette-values 101 107 101 15.4 87 font-size 5.5 1 1 1 7 font-size-adjust 127 3 127 17 113 font-stretch 9 9 48 11 35 font-style 4 1 1 1 7 font-synthesis 97 34 97 10 83 font-variant 4 1 1 1 3.5 font-variant-alternates 111 34 111 9.1 97 font-variant-caps 79 34 52 9.1 39 font-variant-east-asian 79 34 63 9.1 50 font-variant-ligatures 79 34 34 9.1 21 font-variant-numeric 79 34 52 9.1 39 font-variant-position 117 34 117 9.1 103 font-weight 4 1 2 1.3 3.5 G gap 84 63 84 14.1 70 grid 10 52 57 10 44 grid-area 10 52 57 10 44 grid-auto-columns 10 52 57 10 44 grid-auto-flow 10 52 57 10 44 grid-auto-rows 10 52 57 10 44 grid-column 10 52 57 10 44 grid-column-end 10 52 57 10 44 grid-column-start 10 52 57 10 44 grid-row 10 52 57 10 44 grid-row-end 10 52 57 10 44 grid-row-start 10 52 57 10 44 grid-template 10 52 57 10 44 grid-template-areas 10 52 57 10 44 grid-template-columns 10 52 57 10 44 grid-template-rows 10 52 57 10 44 H hanging-punctuation height 4 1 1 1 7 hyphens 79 43 55 17 44 hyphenate-character 106 98 106 17 92 I image-rendering 79 65 41 10 28 @import 5.5 1 1 1 3.5 initial-letter 110 110 9 96 inline-size 79 41 57 12.1 44 inset 87 66 87 14.1 73 inset-block 87 63 87 14.1 73 inset-block-end 87 63 87 14.1 73 inset-block-start 87 63 87 14.1 73 inset-inline 87 63 87 14.1 73 inset-inline-end 87 63 87 14.1 73 inset-inline-start 87 63 87 14.1 73 isolation 79 36 41 7.1 30 J justify-content 11 28 29 9 17 justify-items 16 45 57 10.1 44 justify-self 16 45 57 10.1 44 K @keyframes 10 16 43 9 30 L @layer 99 97 99 15.4 86 left 5.5 1 1 1 5 letter-spacing 4 1 1 1 3.5 line-break 14 69 58 11 45 line-height 4 1 1 1 7 list-style 4 1 1 1 7 list-style-image 4 1 1 1 7 list-style-position 4 1 1 1 3.5 list-style-type 4 1 1 1 3.5 M margin 6 1 1 1 3.5 margin-block 87 66 87 14.1 73 margin-block-end 87 41 87 12.1 73 margin-block-start 87 41 87 12.1 73 margin-bottom 6 1 1 1 3.5 margin-inline 87 66 87 14.1 73 margin-inline-end 87 41 87 12.1 73 margin-inline-start 87 41 87 12.1 73 margin-left 6 1 1 1 3.5 margin-right 6 1 1 1 3.5 margin-top 6 1 1 1 3.5 marker 80 72 80 13.1 67 marker-end 80 72 80 13.1 67 marker-mid 80 72 80 13.1 67 marker-start 80 72 80 13.1 67 mask 120 53 120 15.4 106 mask-clip 120 53 120 15.4 106 mask-composite 120 53 120 15.4 106 mask-image 120 53 120 15.4 15 mask-mode 120 53 120 15.4 106 mask-origin 120 53 120 15.4 106 mask-position 120 53 120 15.4 106 mask-repeat 120 53 120 15.4 106 mask-size 120 53 120 15.4 106 mask-type 79 35 24 7 15 max-block-size 79 41 57 12.1 44 max-height 7 1 1 2 7 max-inline-size 79 41 57 12.1 44 max-width 7 1 1 2 7 @media 9 3.5 21 4 9 min-block-size 79 41 57 12.1 44 min-inline-size 79 41 57 12.1 44 min-height 7 1 1 2 4 min-width 7 1 1 2 4 mix-blend-mode 79 32 41 8 35 N @namespace 12 1 1 1 8 O object-fit 16 36 31 7.1 19 object-position 16 36 31 7.1 19 offset 79 72 55 16 42 offset-anchor 116 72 116 16 102 offset-distance 79 72 55 16 42 offset-path 79 72 55 15.4 45 offset-position 116 122 116 16 102 offset-rotate 79 72 56 16 43 opacity 9 2 4 3.1 9 order 11 28 29 9 17 orphans 8 25 3.1 10 outline 8 1.5 1 1.2 7 outline-color 8 1.5 1 1.2 7 outline-offset 15 3.5 4 3 10.5 outline-style 8 1.5 1 1.2 7 outline-width 8 1.5 1 1.2 7 overflow 4 1 1 1 7 overflow-anchor 79 66 56 43 overflow-wrap 18 49 23 6.1 12.1 overflow-x 9 3.5 4 3 9.5 overflow-y 9 1.5 4 3 9.5 overscroll-behavior 18 59 63 16 50 overscroll-behavior-block 79 73 77 16 64 overscroll-behavior-inline 79 73 77 16 64 overscroll-behavior-x 18 59 63 16 50 overscroll-behavior-y 18 59 63 16 50 P padding 4 1 1 1 3.5 padding-block 87 66 87 14.1 73 padding-block-end 87 41 87 12.1 73 padding-block-start 87 41 87 12.1 73 padding-bottom 4 1 1 1 3.5 padding-inline 87 66 87 14.1 73 padding-inline-end 87 41 87 12.1 73 padding-inline-start 87 41 87 12.1 73 padding-left 4 1 1 1 3.5 padding-right 4 1 1 1 3.5 padding-top 4 1 1 1 3.5 @page 12 19 12 6 page-break-after 4 1 1 1.2 7 page-break-before 4 1 1 1.2 7 page-break-inside 8 19 1 1.3 7 paint-order 17 60 35 8 22 perspective 10 16 36 9 23 perspective-origin 10 16 36 9 23 place-content 79 53 59 11 46 place-items 79 45 59 11 46 place-self 79 45 59 11 46 pointer-events 11 3.6 2 4 9 position 7 1 1 1.2 4 @property 85 128 85 16.4 71 Q quotes 8 1.5 11 5.1 4 R resize 79 5 4 4 15 right 5.5 1 1 1 5 rotate 104 72 104 14.1 90 row-gap 84 63 84 14.1 70 S scale 104 72 104 14.1 90 @scope 118 118 17.4 104 scroll-behavior 79 36 61 14 48 scroll-margin 79 90 69 14.1 56 scroll-margin-block 79 68 69 14.1 56 scroll-margin-block-end 79 68 69 14.1 56 scroll-margin-block-start 79 68 69 14.1 56 scroll-margin-bottom 79 68 69 14.1 56 scroll-margin-inline 79 68 69 14.1 56 scroll-margin-inline-end 79 68 69 14.1 56 scroll-margin-inline-start 79 68 69 14.1 56 scroll-margin-left 79 68 69 14.1 56 scroll-margin-right 79 68 69 14.1 56 scroll-margin-top 79 68 69 14.1 56 scroll-padding 79 90 69 14.1 56 scroll-padding-block 79 68 69 14.1 56 scroll-padding-block-end 79 68 69 14.1 56 scroll-padding-block-start 79 68 69 14.1 56 scroll-padding-bottom 79 68 69 14.1 56 scroll-padding-inline 79 68 69 14.1 56 scroll-padding-inline-end 79 68 69 14.1 56 scroll-padding-inline-start 79 68 69 14.1 56 scroll-padding-left 79 68 69 14.1 56 scroll-padding-right 79 68 69 14.1 56 scroll-padding-top 79 68 69 14.1 56 scroll-snap-align 79 68 69 11 56 scroll-snap-stop 79 68 69 11 56 scroll-snap-type 79 68 69 11 56 scrollbar-color 121 64 121 107 scrollbar-gutter 94 97 94 80 scrollbar-width 121 64 121 107 shape-image-threshold 79 62 37 10.1 24 shape-margin 79 62 37 10.1 24 shape-outside 79 62 37 10.1 24 shape-rendering 80 72 80 13.1 67 @starting-style 117 129 117 17.5 103 @supports 12 22 28 9 12.1 T tab-size 79 91 21 7 15 table-layout 5 1 14 1 7 text-align 3 1 1 1 3.5 text-align-last 12 49 47 16 34 text-combine-upright 79 48 48 15.4 35 text-decoration 3 1 1 1 3.5 text-decoration-color 79 36 57 12.1 44 text-decoration-line 79 36 57 12.1 44 text-decoration-style 79 36 57 12.1 44 text-decoration-thickness 89 70 89 12.1 75 text-emphasis 99 46 99 7 85 text-emphasis-color 99 46 99 7 85 text-emphasis-position 99 46 99 7 85 text-emphasis-style 99 46 99 7 85 text-indent 3 1 1 1 3.5 text-justify 55 text-orientation 79 41 48 14 35 text-overflow 6 7 4 3.1 11 text-shadow 10 3.5 4 4 9.6 text-transform 4 1 1 1 7 text-underline-offset 87 70 87 12.1 73 text-underline-position 79 74 33 12.1 20 top 5 1 1 1 6 touch-action 12 52 36 13 23 transform 12 16 36 9 23 transform-origin 12 16 36 9 23 transform-style 12 16 36 9 23 transition 10 16 26 6.1 12.1 transition-delay 10 16 26 6.1 12.1 transition-duration 10 16 26 6.1 12.1 transition-property 10 16 26 6.1 12.1 transition-timing-function 10 16 26 6.1 12.1 translate 104 72 104 14.1 90 U unicode-bidi 5.5 1 2 1.3 9.2 user-select 79 69 54 3.1 41 V vertical-align 4 1 1 1 4 visibility 4 1 1 1 4 W white-space 8 3.5 1 3 9.5 widows 8 25 7 10 width 4 1 1 1 3.5 will-change 79 36 36 9.1 24 word-break 5.5 15 4 3.1 15 word-spacing 6 1 1 1 3.5 word-wrap 5.5 3.5 4 3.1 10.5 writing-mode 12 41 48 11 35 Z z-index 4 3 1 1 4 zoom 12 126 1 3.1 15 Icon Explanations Supported by Edge Supported by Firefox Supported by Chrome Supported by Safari Supported by Opera Supported by Edge with prefix -webkit- Supported by Firefox with prefix -moz- Supported by Chrome with prefix -webkit- Supported by Safari with prefix -webkit- Supported by Opera with prefix -webkit- ★ +1 Sign in to track progress
  27. CSS Default Values Reference Default CSS Values for HTML Elements The table below shows the default CSS browser values for all HTML elements. Element Default CSS Value Try it a:link color: (internal value); text-decoration: underline; cursor: auto; Try it » a:visited color: (internal value); text-decoration: underline; cursor: auto; Try it » a:link:active color: (internal value); Try it » a:visited:active color: (internal value); Try it » abbr None. address display: block; font-style: italic; Try it » area display: none; article display: block; aside display: block; audio None. b font-weight: bold; Try it » base None. bdi None. bdo unicode-bidi: bidi-override; blockquote display: block; margin-top: 1em; margin-bottom: 1em; margin-left: 40px; margin-right: 40px; Try it » body display: block; margin: 8px; Try it » body:focus outline: none; Try it » br None. button None canvas None. caption display: table-caption; text-align: center; Try it » cite font-style: italic; Try it » code font-family: monospace; Try it » col display: table-column; Try it » colgroup display: table-column-group Try it » datalist display: none; dd display: block; margin-left: 40px; Try it » del text-decoration: line-through; Try it » details display: block; dfn font-style: italic; Try it » dialog None. div display: block; Try it » dl display: block; margin-top: 1em; margin-bottom: 1em; margin-left: 0; margin-right: 0; Try it » dt display: block; Try it » em font-style: italic; Try it » embed:focus outline: none; fieldset display: block; margin-left: 2px; margin-right: 2px; padding-top: 0.35em; padding-bottom: 0.625em; padding-left: 0.75em; padding-right: 0.75em; border: 2px groove (internal value); Try it » figcaption display: block; figure display: block; margin-top: 1em; margin-bottom: 1em; margin-left: 40px; margin-right: 40px; Try it » footer display: block; form display: block; margin-top: 0em; Try it » h1 display: block; font-size: 2em; margin-top: 0.67em; margin-bottom: 0.67em; margin-left: 0; margin-right: 0; font-weight: bold; Try it » h2 display: block; font-size: 1.5em; margin-top: 0.83em; margin-bottom: 0.83em; margin-left: 0; margin-right: 0; font-weight: bold; Try it » h3 display: block; font-size: 1.17em; margin-top: 1em; margin-bottom: 1em; margin-left: 0; margin-right: 0; font-weight: bold; Try it » h4 display: block; margin-top: 1.33em; margin-bottom: 1.33em; margin-left: 0; margin-right: 0; font-weight: bold; Try it » h5 display: block; font-size: .83em; margin-top: 1.67em; margin-bottom: 1.67em; margin-left: 0; margin-right: 0; font-weight: bold; Try it » h6 display: block; font-size: .67em; margin-top: 2.33em; margin-bottom: 2.33em; margin-left: 0; margin-right: 0; font-weight: bold; Try it » head display: none; header display: block; hr display: block; margin-top: 0.5em; margin-bottom: 0.5em; margin-left: auto; margin-right: auto; border-style: inset; border-width: 1px; Try it » html display: block; html:focus outline: none; i font-style: italic; Try it » iframe:focus outline: none; iframe[seamless] display: block; img display: inline-block; Try it » input None. ins text-decoration: underline; Try it » kbd font-family: monospace; Try it » label cursor: default; Try it » legend display: block; padding-left: 2px; padding-right: 2px; border: none; Try it » li display: list-item; link display: none; main None. map display: inline; mark background-color: yellow; color: black; Try it » menu display: block; list-style-type: disc; margin-top: 1em; margin-bottom: 1em; margin-left: 0; margin-right: 0; padding-left: 40px; menuitem None. meta None. meter None. nav display: block; noscript None. object:focus outline: none; ol display: block; list-style-type: decimal; margin-top: 1em; margin-bottom: 1em; margin-left: 0; margin-right: 0; padding-left: 40px; Try it » optgroup None. option None. output display: inline; p display: block; margin-top: 1em; margin-bottom: 1em; margin-left: 0; margin-right: 0; Try it » param display: none; picture None. pre display: block; font-family: monospace; white-space: pre; margin: 1em 0; Try it » progress None. q display: inline; Try it » q::before content: open-quote; Try it » q::after content: close-quote; Try it » rp None. rt line-height: normal; ruby None. s text-decoration: line-through; Try it » samp font-family: monospace; Try it » script display: none; section display: block; Try it » select None. small font-size: smaller; Try it » source None. span display: inline; strike text-decoration: line-through; Try it » strong font-weight: bold; Try it » style display: none; sub vertical-align: sub; font-size: smaller; Try it » summary display: block; sup vertical-align: super; font-size: smaller; Try it » table display: table; border-collapse: separate; border-spacing: 2px; border-color: gray; Try it » tbody display: table-row-group; vertical-align: middle; border-color: inherit; td display: table-cell; vertical-align: inherit; template None. textarea None. tfoot display: table-footer-group; vertical-align: middle; border-color: inherit; th display: table-cell; vertical-align: inherit; font-weight: bold; text-align: center; thead display: table-header-group; vertical-align: middle; border-color: inherit; time None. title display: none; tr display: table-row; vertical-align: inherit; border-color: inherit; track None. u text-decoration: underline; Try it » ul display: block; list-style-type: disc; margin-top: 1em; margin-bottom: 1 em; margin-left: 0; margin-right: 0; padding-left: 40px; Try it » var font-style: italic; Try it » video None. wbr None. ★ +1 Sign in to track progress
  28. CSS Legal Color Values CSS Colors Colors in CSS can be specified by the following methods: Hexadecimal colors Hexadecimal colors with transparency RGB colors RGBA colors HSL colors HSLA colors Predefined/Cross-browser color names With the currentcolor keyword Hexadecimal Colors A hexadecimal color is specified with: #RRGGBB, where the RR (red), GG (green) and BB (blue) hexadecimal integers specify the components of the color. All values must be between 00 and FF. For example, the #0000ff value is rendered as blue, because the blue component is set to its highest value (ff) and the others are set to 00. Example Define different HEX colors: #p1 {background-color: #ff0000;} /* red */ #p2 {background-color: #00ff00;} /* green */ #p3 {background-color: #0000ff;} /* blue */ Try it Yourself » Hexadecimal Colors With Transparency A hexadecimal color is specified with: #RRGGBB. To add transparency, add two additional digits between 00 and FF. Example Define different HEX colors with transparency: #p1a {background-color: #ff000080;} /* red transparency */ #p2a {background-color: #00ff0080;} /* green transparency */ #p3a {background-color: #0000ff80;} /* blue transparency */ Try it Yourself » RGB Colors An RGB color value is specified with the rgb() function, which has the following syntax: rgb(red, green, blue) Each parameter (red, green, and blue) defines the intensity of the color and can be an integer between 0 and 255 or a percentage value (from 0% to 100%). For example, the rgb(0,0,255) value is rendered as blue, because the blue parameter is set to its highest value (255) and the others are set to 0. Also, the following values define equal color: rgb(0,0,255) and rgb(0%,0%,100%). Example Define different RGB colors: #p1 {background-color: rgb(255, 0, 0);} /* red */ #p2 {background-color: rgb(0, 255, 0);} /* green */ #p3 {background-color: rgb(0, 0, 255);} /* blue */ Try it Yourself » RGBA Colors RGBA color values are an extension of RGB color values with an alpha channel - which specifies the opacity of the object. An RGBA color is specified with the rgba() function, which has the following syntax: rgba(red, green, blue, alpha) The alpha parameter is a number between 0.0 (fully transparent) and 1.0 (fully opaque). Example Define different RGB colors with opacity: #p1 {background-color: rgba(255, 0, 0, 0.3);} /* red with opacity */ #p2 {background-color: rgba(0, 255, 0, 0.3);} /* green with opacity */ #p3 {background-color: rgba(0, 0, 255, 0.3);} /* blue with opacity */ Try it Yourself » HSL Colors HSL stands for hue, saturation, and lightness - and represents a cylindrical-coordinate representation of colors. An HSL color value is specified with the hsl() function, which has the following syntax: hsl(hue, saturation, lightness) Hue is a degree on the color wheel (from 0 to 360) - 0 (or 360) is red, 120 is green, 240 is blue. Saturation is a percentage value; 0% means a shade of gray and 100% is the full color. Lightness is also a percentage; 0% is black, 100% is white. Example Define different HSL colors: #p1 {background-color: hsl(120, 100%, 50%);} /* green */ #p2 {background-color: hsl(120, 100%, 75%);} /* light green */ #p3 {background-color: hsl(120, 100%, 25%);} /* dark green */ #p4 {background-color: hsl(120, 60%, 70%);} /* pastel green */ Try it Yourself » HSLA Colors HSLA color values are an extension of HSL color values with an alpha channel - which specifies the opacity of the object. An HSLA color value is specified with the hsla() function, which has the following syntax: hsla(hue, saturation, lightness, alpha) The alpha parameter is a number between 0.0 (fully transparent) and 1.0 (fully opaque). Example Define different HSL colors with opacity: #p1 {background-color: hsla(120, 100%, 50%, 0.3);} /* green with opacity */ #p2 {background-color: hsla(120, 100%, 75%, 0.3);} /* light green with opacity */ #p3 {background-color: hsla(120, 100%, 25%, 0.3);} /* dark green with opacity */ #p4 {background-color: hsla(120, 60%, 70%, 0.3);} /* pastel green with opacity */ Try it Yourself » Predefined/Cross-browser Color Names 140 color names are predefined in the HTML and CSS color specification. For example: blue, red, coral, brown, etc: Example Define different color names: #p1 {background-color: blue;} #p2 {background-color: red;} #p3 {background-color: coral;} #p4 {background-color: brown;} Try it Yourself » A list of all predefined names can be found in our Color Names Reference. The currentcolor Keyword The currentcolor keyword refers to the value of the color property of an element. Example The border color of the following <div> element will be blue, because the text color of the <div> element is blue: #myDIV { color: blue; /* Blue text color */ border: 10px solid currentcolor; /* Blue border color */ } Try it Yourself » ★ +1 Sign in to track progress

帐户

导航

搜索

搜索

配置浏览器推送通知

Chrome (安卓)
  1. 轻敲地址栏旁的锁形图标。
  2. 轻敲权限 → 通知。
  3. 调整你的偏好。
Chrome (台式电脑)
  1. 点击地址栏中的挂锁图标。
  2. 选择网站设置。
  3. 找到通知选项并调整你的偏好。