javascript - 不规则的button怎么让鼠标信息传到下面去?
高洛峰
高洛峰 2017-04-11 12:16:09
0
3
311

美工设计了一组梯形按钮,实际摆上去视觉效果不错,可点击透明部分依然是这按钮在响应事件.我需要下面的元素获得鼠标怎么整?

目前css就这样写的:

    position:absolute;
    left:50px;        
    top:0px;
        ...
    height:54px;
    width:298px;       
    background:url(indexpng/fixedbutton.png) no-repeat;
    background-color: transparent;
     ...
     
     png图片能看见的部分是个梯形
高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

répondre à tous(3)
刘奇

给按钮设置css属性

pointer-events: none;
巴扎黑

我查了下,好像连ie10都不支持.能css2支持就好啦

左手右手慢动作

1、不使用按钮,使用热区

2、使用 CSS3 将按钮设置为梯形

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!