我曾经在网上搜索了100次,找到了我喜欢的东西.我一无所获,并试图自己做.两天后,由于种种原因,我放弃了.所以我在这里问你们所有人是否可以为我做这件事.想想一个鼓棒标题,你向下滚动一个网站,标题与它固定在顶部.所以我的想象是,每当标题打到一个部分时data-color="#2D2D2D",标题背景颜色将更改为它.但是,等等,我希望它与背景图像呈线性关系,所以如果他将其颜色线性回滚到之前的颜色.
这是我见过的文章.但它只是一个图像,它在内容中. https://codyhouse.co/demo/fixed-background-effect/index.html
这是我的笔(这只是一个尝试) http://codepen.io/muuvmuuv/pen/MarxYx
我了解如何使用 xml 配置 phpcs,但找不到如何禁用某些嗅探。这是我当前的配置(甚至不知道这是否正确):
\n\n<?xml version="1.0" encoding="UTF-8"?>\n<ruleset name="custom" \n xmlns="http://pmd.sf.net/ruleset/1.0.0" \n xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">\n <rule ref="rulesets/codesize.xml"/>\n <rule ref="rulesets/controversial.xml/Superglobals"/>\n <rule ref="rulesets/controversial.xml/CamelCaseParameterName"/>\n <rule ref="rulesets/controversial.xml/CamelCaseVariableName"/>\n <rule ref="rulesets/design.xml"/>\n <rule ref="rulesets/naming.xml/ShortMethodName"/>\n <rule ref="rulesets/naming.xml/ConstructorWithNameAsEnclosingClass"/>\n <rule ref="rulesets/naming.xml/ConstantNamingConventions"/>\n <rule ref="rulesets/naming.xml/BooleanGetMethodName">\n <properties>\n <property name="checkParameterizedMethods" value="true"/>\n </properties>\n </rule>\n <rule ref="rulesets/unusedcode.xml"/>\n\n <arg name="tab-width" value="2"/>\n <rule ref="Generic.WhiteSpace.ScopeIndent">\n <properties>\n <property name="indent" value="2"/>\n </properties>\n </rule>\n\n <rule ref="Generic.Files.LineLength">\n <properties>\n <property name="lineLimit" value="140"/>\n <property name="absoluteLineLimit" value="0"/>\n </properties>\n </rule>\n</ruleset>\nRun Code Online (Sandbox Code Playgroud)\n\n我想禁用这些:
\n\n[phpcs] @copyright tag must contain a year and the name of the …我的计算机上有大约两到六个带有 docker 的项目,有时我会并行使用这些项目,并且每次我想使用另一个项目时都必须手动停止一些容器(mariadb、mongodb、php、nginx、apache)。有没有办法通过其端口停止这些容器,这样我就可以简单地docker stop -p 3306将其添加到我的 Makefilestop部分?如果没有,我应该采取什么方式来优化这个工作流程。
我正在使用 macOS 10.14.x 和 Docker 桌面 v18.09.2 的 Mac。