如何设置仅在javascript

时间:2017-02-07 13:20:15

标签: javascript css

单独启动Free Trail“部分应该是可点击的,我也想为同一个

添加光标指针

"Start Free Trail" section alone should be clickable and also I want to add cursor pointer for the same

1 个答案:

答案 0 :(得分:0)

这很容易你甚至不需要js:

.img {
  position: relative;
  max-width: 650px;
  max-height: 229px;
}
.img a { 
  z-index: 2;
  background-color: rgba(0,0,0,0.0);
  min-width: 230px;
  min-height: 34px;
  max-height: 34px;
  position: absolute;
  top: 184px;
  left: 34px;
  border-radius: 8px;
}
.img a:hover {
  background-color: rgba(0,0,0,0.1);
}
<div class="img">
  <a href="test.html"></a>
  <img src="https://i.stack.imgur.com/9caWD.jpg">
</div>