Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 为什么PHPStorm报告填充不是';在跨度元素上不允许?_Html_Phpstorm_Stylesheet - Fatal编程技术网

Html 为什么PHPStorm报告填充不是';在跨度元素上不允许?

Html 为什么PHPStorm报告填充不是';在跨度元素上不允许?,html,phpstorm,stylesheet,Html,Phpstorm,Stylesheet,我有下面的html代码。PHPStorm表示此处不允许使用属性填充。如何快速修复此问题 <span style="padding:10px 0;"></span> Span元素默认为内联元素,因此没有边距、填充、大小等。将其设置为显示:内联块或使用div。填充适用于内联块和块级别的元素 或者使用样式表: .padded{ 显示:内联块; 填充:10px0; 背景:纳瓦霍人; } 我要上课了

我有下面的html代码。PHPStorm表示此处不允许使用属性填充。如何快速修复此问题

<span style="padding:10px 0;"></span>


Span元素默认为内联元素,因此没有边距、填充、大小等。将其设置为
显示:内联块
或使用div。

填充适用于
内联块
级别的元素

或者使用样式表:

.padded{
显示:内联块;
填充:10px0;
背景:纳瓦霍人;
}
我要上课了