我想创建一个固定位置的按钮,将在我的网站上运行,无论是在左侧或作为一个弹出式面板(请参阅http://uservoice.com/fullservice的一个很酷的弹出式按钮在屏幕底部)。单击该按钮将启动一个弹出窗口,我的公司使用该窗口来提供联系和反馈信息。
对于这些类型的按钮,有没有基本的CSS示例?我是一个JS的家伙,创建弹出窗口没有任何问题,但我没有CSS技能来获得按钮来激活我的窗口。
发布于 2011-03-12 02:45:09
css将为:
.button {
position: fixed;
bottom: 0;
right: 0; //or left: 0; depending on where you want it to be.
}其中html为:
<div class='button'> button text here </div>发布于 2011-03-12 02:44:13
尝试如下所示:
#feedback-button {
position: fixed;
bottom: 0px;
right: 0px;
}https://stackoverflow.com/questions/5276993
复制相似问题