0
A
回答
2
也许试试这个。希望它可以帮助你。
注意:如果使用锚标记,只需更改按钮的元素。
.placeholder-box {
position: relative;
display: block;
width: 300px;
min-height: 150px;
margin-top: 50px;
padding: 30px;
border: 1px solid #888;
border-radius: 10px;
box-sizing: border-box;
box-shadow: 0 0 8px 0 rgba(0,0,0,0.25);
}
.placeholder-box p {
text-align: center;
margin: 0 0 15px;
}
.placeholder-box ul {
margin: 0;
}
/* Button */
button {
display: block;
border: solid white;
border-width: 0 10px;
border-radius: 0;
background: green;
color: white;
font-size: 18px;
margin: -60px auto 15px;
padding: 15px;
}
<div class="placeholder-box">
<button type="button"> Button Text Here </button>
<p>Nunc condimentum mauris elit</p>
<ul>
<li>Duis quis eros felis</li>
<li>Nulla facilisi</li>
</ul>
</div>
+0
谢谢,我很高兴在我的新项目中使用该代码很长时间 –
1
<div style="padding:100px;" align="center">
<a style=" background-color:#01B901;background-color: #01B901;padding: 50px;color: white;padding-top: 20px;padding-bottom: 20px;">hello btn</a>
</div>
这是什么ü婉?
+0
谢谢,但我担心更主要的是它周围的按钮和文本,这你要跟这里没有提到边界 – sanjeev51
相关问题
- 1. 矩形重叠,但说它在里面?
- 2. 里面有按钮的CSS Round Div?
- 3. GTK和CSS:圆形按钮
- 4. 按钮的XAML和字形
- 5. 用按钮绘制矩形
- 6. 与CSS的按钮形状
- 7. 编辑按钮里面的UITabBarController和UINavigationController
- 8. CSS里面一个方形
- 9. 圆形矩形按钮连接到ViewController.h
- 10. 点击事件中的文字和图像在它上面的矩形
- 11. 阅读多个圆形矩形按钮的文本
- 12. 输入文字里面的CSS动画?
- 13. 用矩形作为按钮的Silverlight UserControl
- 14. 后面的按钮里面的类大
- 15. 如何让facebook里面的文字像按钮一样白?
- 16. 获取文字块的价值在里面一个按钮
- 17. 动态文字控件里面的动态按钮
- 18. 如何创建矩形按钮并扰动它horizintaly
- 19. facebook里面像按钮
- 20. 安卓按钮里面PopupWindow
- 21. c形曲面板和按钮#
- 22. PDFKit - 矩形文字
- 23. 阴影与CSS梯形形状按钮
- 24. 应用CSS设置位置里面的图标按钮
- 25. 矩形Java Swing单选按钮?
- 26. iOS - 矩形按钮出现后
- 27. GLSurfaceView纹理矩形按钮单击
- 28. CSS按钮:按钮水平对齐和大小与舒展的文字大小
- 29. iText(Sharp) - 按钮字段里面的模板里面的单元格
- 30. 长按矩形
所以我们你尝试过什么到目前为止.. –