Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我注意到这一点:
<a href = "somelink"> <div class = "samplecalssname"> </div> </a>
在IOS设备上不工作,div上应该有链接不是吗?
我明白了,我只需要定义 div 标签的高度和宽度,因为它没有任何内容在屏幕上似乎不可见.. 在我刚刚添加的 css 文件上:
.samplecalssname{ height : 100px; width : 100px; }
这很好用。