【发布时间】:2012-07-03 23:55:39
【问题描述】:
我在 h1 标记中有一个标题文本。我想在文本的末尾有一个小图标(所以在文本的右侧)
文本长度明显不同。
我已将 h1 样式设置为具有背景图像,不再重复,但它会将其置于 div 的边缘。
有什么方法可以让它在文本末尾始终对齐?我假设这不能像我尝试过的那样用 bg-image 完成?
h1 {
background-image:url(images/quotemarks.png);
background-repeat:no-repeat;
background-position:right;
【问题讨论】:
标签: html css image background