Wrap link around

后端 未结 8 1045
没有蜡笔的小新
没有蜡笔的小新 2020-11-28 06:54

Is it possible to wrap an tag around

8条回答
  •  南方客
    南方客 (楼主)
    2020-11-28 07:34

    Timothy's solution is correct ... instead of wrapping an anchor around a div ... you simply give layout to the anchor element with display:block and add the size and width of the anchor ...

    .div_class   { width: 100px; height: 100px; }
    .div_class a { width: 100px; height: 100px; display: block; }
    
    

提交回复
热议问题