我想知道如何在::after伪元素中格式化内容CSS ?
我正试图在h1其左侧和右侧有一个小图像的标题.
我的代码到目前为止:
HTML:
<h1>This Week's Photo Features</h1>
Run Code Online (Sandbox Code Playgroud)
CSS:
h1 {
text-align: center;
}
h1:before {
content: ("images/NikonD100_40x30.jpg");
}
Run Code Online (Sandbox Code Playgroud)