非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。
-moz-force-broken-image-icon
extended CSS property can be used to force the broken image icon to be shown even when a broken image has an
alt
属性。
<integer>
1
means that the broken image icon is shown even if the image has an
alt
attribute. When the value
0
is used the image will act as usual and only display the
alt
属性。
1
the
alt
attribute will still be displayed, alongside the broken image icon.
| 初始值 |
0
|
|---|---|
| 适用于 | images |
| 继承 | no |
| 计算值 | 如指定 |
| 动画类型 | discrete |
<integer>
<img src='/broken/image/link.png' alt='Broken image link'>
img {
-moz-force-broken-image-icon: 1;
height: 100px;
width: 100px;
}
| Screenshot | Live sample |
|---|---|
|
-moz-force-broken-image-icon
is set to
1
.
alt
attribute should be used instead.
Not part of any standard.
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
-moz-force-broken-image-icon
弃用
非标
|
Chrome 不支持 No | Edge 不支持 No | Firefox 完整支持 1 | IE 不支持 No | Opera 不支持 No | Safari 不支持 No | WebView Android 不支持 No | Chrome Android 不支持 No | Firefox Android 完整支持 4 | Opera Android 不支持 No | Safari iOS 不支持 No | Samsung Internet Android 不支持 No |
完整支持
不支持
非标。预期跨浏览器支持较差。
弃用。不要用于新网站。
-moz-context-properties
-moz-float-edge
-moz-force-broken-image-icon
-moz-image-region
-moz-orient
-moz-outline-radius
-moz-outline-radius-bottomleft
-moz-outline-radius-bottomright
-moz-outline-radius-topleft
-moz-outline-radius-topright
-moz-user-focus
-moz-user-input
box-align
box-direction
box-flex
box-flex-group
box-lines
box-ordinal-group
box-orient
box-pack