html - 使用 CSS 移动 png

标签 html css pull

如何将箭头放在按钮框中?如有任何关于代码的建议,我们将不胜感激。

HTML:

<!--Header-->
<div class="mainHeader header">
    <h1>
        LET US MAKE YOUR AWESOME IDEA HAPPENN
    </h1>
    <div class="button">
        <p class="">
            WATCH VIDEO
        </p><img src="playbutton.png">
    </div>
</div>

CSS:

.button {
    width: 250px;
    height: 46px;
    border: solid white 2px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
    top: 70%;
}
.button p {
    text-align: center;
    font-size: 20px;
    font-family: 'Teko', sans-serif;
    color: white;
    position: relative;
    bottom: 20%;
}

http://codepen.io/anon/pen/RPpQPV

最佳答案

body{
  background: #000;
}

button {
  width: 250px;
  height: 46px;
  margin: 0 auto;
  background: none;
  border: solid white 2px;  
  z-index: 2;
  position: relative;  
  text-align: center;
  font-size: 20px;
  font-family: 'Teko', sans-serif;
  color: white;    
}
<button>
         WATCH SHOWREEL 
        <img src="http://iconizer.net/files/Splashyfish/orig/arrow_medium_down.png">
      </button>

关于html - 使用 CSS 移动 png,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30627696/

相关文章:

javascript - 检查 html 是否有一个类,如果是真的,则打印一个没有 jquery 的结果

html - 图像旁边的断线文本,垂直居中

css - 尝试创建一个 css 列子菜单

git - 尝试 git pull 错误 : cannot open . git/FETCH_HEAD: Permission denied

html - 重置访问过的颜色

css - 如何在 Safari 浏览器中使用边界半径

html - 响应式布局中的 Angular 带

git - 克隆裸 git 存储库的单个路径

连续重试下载后 Docker pull 失败

javascript - 如何使用 javascript 向 html 表单下拉列表添加选项