为什么:之前和之后:没有工作 input type='submit'
这是我的代码
input.submit:before { display: inline-block; -webkit-font-smoothing: antialiased; font: normal 18px/1 'Genericons'; content: '\f400'; }
Juan Mendes.. 15
这是因为:before
并且:after
仅适用于可以拥有子节点的节点.在您的情况下,使用按钮将起作用,因为它可以采用HTML.
这是因为:before
并且:after
仅适用于可以拥有子节点的节点.在您的情况下,使用按钮将起作用,因为它可以采用HTML.