我尝试在 Chrome 中打印详细信息标签的内容,但无法强制它打开。
这是我的打印 CSS 中的内容:
details, details > * { display:block !important; }
Run Code Online (Sandbox Code Playgroud)
但只有当我在打印页面之前打开详细信息时,内容才会出现。
有没有办法通过 chrome 上的 css print 强制打开详细信息?
我试图让grunt-browserfy使用coffeescript的相对路径,但是当我尝试构建我的源时,我总是有一条错误消息:
>> Error: module "src/app/utils/includeMixin" not found from "/[ABSOLUTE-PATH-TO-MY-PROJECT]/project/src/app/app-audit.coffee"
Run Code Online (Sandbox Code Playgroud)
我的文件层次结构如下所示:
project
|- build
| |- libs.js
| |- audit.js
|- src
|- app
|- app-audit.coffee
|- utils
|- includeMixin.coffee
|- vendor
|- node_modules
|- gruntfile.coffee
Run Code Online (Sandbox Code Playgroud)
我使用grunt-browserify和remapify插件,coffeeify来转换我的来源.
我还使用grunt-browserifyBower来构建我的库,但这个作品就像魅力一样.
这是我的gruntfile.coffee的一个例子:
#Init grunt module
module.exports = (grunt) ->
'use strict';
remapify = require 'remapify'
#Init Configuration
grunt.initConfig
browserify:
dev:
files:
"build/audit.js": ["src/app/app-audit.coffee"]
options:
browserifyOptions:
extensions: ['.coffee']
bundleOptions:
debug: true
preBundleCB: (b) ->
b.plugin remapify, [{
src: 'src/**/*.*'
expose: 'src'
cwd: __dirname
}]
transform: …Run Code Online (Sandbox Code Playgroud) 我不熟悉英语可访问性规范.
我知道法国的RGAA我们不能使用HTML5,因为我们必须与IE6(no-js)兼容,并且大部分屏幕阅读器都是基于它的.
RGAA和accessiweb Silver都受WCAG 2.0 Level AA的启发,所以我想我不能使用HTML5,但我只想确定.
谢谢.
browserify ×1
coffeescript ×1
css ×1
gruntjs ×1
html ×1
html5 ×1
javascript ×1
node.js ×1
printing ×1
wcag ×1
xhtml ×1