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

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

OKCCN - XenForo & IPS Plugin Marketplace

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

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

CSS Pseudo-elements Reference

推荐的帖子

  • 行政经理

CSS Pseudo-elements Reference


CSS Pseudo-elements

A CSS pseudo-element is used to style specific parts of an element.

For example, it can be used to:

  • Style the first letter or line, of an element
  • Insert content before or after an element
  • Style the markers of list items
  • Style the viewbox behind a dialog box

The table below shows the different pseudo-elements in CSS:

Pseudo-element Example Example description
::after p::after
div::after
Inserts something after the content of the specified element
::backdrop dialog::backdrop Styles the viewbox behind a dialog box or popover element
::before p::before
div::before
Inserts something before the content of the specified element
::file-selector-button ::file-selector-button Selects any button of type <input type="file">
::first-letter p::first-letter Selects the first letter of every <p> element
::first-line p::first-line Selects the first line of every <p> element
::grammar-error ::grammar-error Styles a text that the browser has flagged as grammatically incorrect
::highlight() ::highlight(custom-name) Selects a custom highlight
::marker ::marker Selects the markers of list items
::placeholder input::placeholder
textarea::placeholder
Styles the placeholder text of <input> or <textarea> elements
::selection ::selection Styles the user-selected text
::spelling-error ::spelling-error Styles a text that the browser has flagged as incorrectly spelled
::view-transition ::view-transition Represents the root of the view transitions overlay, which contains all view transition on the page
::view-transition-group ::view-transition-group Represents a single view transition snapshot group
::view-transition-image-pair ::view-transition-image-pair Represents a container for a view transition's "old" and "new" view states - before and after the transition
::view-transition-new ::view-transition-new Represents the "new" view state of a view transition
::view-transition-old ::view-transition-old Represents the "old" view state of a view transition


参与讨论

你可立刻发布并稍后注册。 如果你有帐户,立刻登录发布帖子。

游客
回帖…

帐户

导航

搜索

搜索

配置浏览器推送通知

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