Adobe

  • 挺好用的水平垂直居中任意内容代码,并且支持度很高

    相关代码

    html

    <!-- 注释用于去除 inline-block `间隙` -->
    <div class="container"><!--
     --><div class="center">
                <h2>这个是居中标题</h2>
                <p>这里是一些文字,文字</p>
         </div><!--
    --></div>

    css

    .container {
        text-a
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi aliquam neque vitae ornare luctus. Nunc vestibulum eget felis ut condimentum. Nunc vel tincidunt quam.

    An h1 header

    Paragraphs are separated by a blank line.

    2nd paragraph. Italic, bold, and monospace. Itemized lists
    look like:

    • this on

  • 之前一个网站做一个css3加载动画,为了“节省” html ,就直接在 body 上使用伪类来做。

    相关代码是这样的:

    html, body {
        background: #fff;
        height: 100%;
        font-size: 100%;
    }
    body {
        overflow: hidden;
        position: relative;
    }
    body:before, body:after {
        content: '';
        width: 30px;
        height: 30px;
        display: block;
        border:
  • Adobe 系列通常情况下宿主应用是不会运行未经签名扩展的,只有打包并签名才可以运行。但是可以打开开发者模式

    启用开发者模式

    Windows

    打开到注册表定位到: ( 高版本类推 )

    • CC 2014: HKEY_CURRENT_USER\Software\Adobe\CSXS.5
    • CC 2015: HKEY_CURRENT_USER\Software\Adobe\CSXS.6

    PlayerDebugMode 设置为 1

    macOS

    终端输入: ( 同样高版本类推 )

    defaults write com.adobe.CSXS.6 PlayerDebugMode 1

    扩展签名打包

    使用

  • The basic problem many people have is, when a window/tab is in the background, the page rendering "goes to sleep mode" and no "css3 animation frames" are provided, the browser will stop drawing.

    You can work around that "problem" by using the browsers visibility API to control your drawing (e.g., do