锚点位置设置
html吧
全部回复
仅看楼主
level 4
大佬们,如果用图标做锚点,它的背景板上的位置该咋设置,我想要竖着的,结果弄下来他不仅位置不对,还是横着的,求解答
2023年12月06日 12点12分 1
level 8
你说的还是太模糊……
<style>
.container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
img {
width: 100px;
height: 100px;
}
</style>
<div class="container"><a href="https://www.baidu.com"><img src="image.png"></a></div>
2023年12月06日 23点12分 3
以上代码是手写的;另附文心一言的AI答案供参考 https://yiyan.baidu.com/share/QfQS9oddxw
2023年12月06日 23点12分
谢谢
2023年12月06日 23点12分
1