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.
我对 div 不是很擅长,任何帮助都会非常感谢。
我的 div 代码示例
<div class="width" style="background-image: url('someImage.jpg');padding-left:200px;background-repeat:no-repeat;height: 200px;" >
类宽度只需将 div 宽度设置为 1000px
我的目标是让图像只能点击,然后将用户重定向到另一个页面。
为什么不使用带有图像的 < a > 标签。
<a href="someURL.com"> <img src="someImage.jpg" /> </a>