固定位置CSS用于提供网站反馈的按钮

Wil*_*mer 6 html javascript css asp.net

我想创建一个固定位置按钮,它将在我的网站上运行,无论是在左侧还是作为弹出式面板(请参阅http://uservoice.com/fullservice,了解屏幕底部的一个很酷的弹出按钮).单击该按钮将启动我公司用于联系和反馈信息的弹出窗口.

是否有这些类型的按钮的基本示例CSS?我是一个JS人并且创建了弹出窗口没有任何问题,但是我没有CSS技能来获取按钮来激活我的窗口.

Nea*_*eal 9

css将是:

.button {
    position: fixed;
    bottom: 0;
    right: 0; //or left: 0; depending on where you want it to be.
}
Run Code Online (Sandbox Code Playgroud)

html是:

<div class='button'> button text here </div>
Run Code Online (Sandbox Code Playgroud)


Gro*_*ain 6

尝试这样的事情:

#feedback-button {
  position: fixed;
  bottom: 0px;
  right: 0px;
}
Run Code Online (Sandbox Code Playgroud)