标签: css svg
<image x="20" y="20" width="300" height="80" xlink:href="logo.png" />
有没有办法用像素定位图像?像CSS sprites?
答案 0 :(得分:-1)
你可以使用position:absolute
e.g。
img { position:absolute; top:20px; left:20px; }
它将相对于该容器的父容器定位,该容器的位置为:相对设置。
希望有所帮助。