html - 如何制作圆角的div

标签 html rounded-corners

如何使 div 的边框角变圆?

最佳答案

这里是:

<style type="text/css">
div.test
{
    width: 115px;
    padding: 10px;
    border: 2px solid #000;
    border-radius: 15px;
    -moz-border-radius: 15px;
}
</style>
<div class="test">This is some text!</div>

关于html - 如何制作圆角的div,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7106970/

相关文章:

html - YUI 按钮错位

javascript - 单击按钮时尝试显示三个选择下拉列表的值

html - CSS/HTML 中的全屏网站

ios - ios中两个Label的圆角

python - 在 Python 中使用 BeautifulSoup 获取直接父标签

css - 如何动态切换 div id

.NET GDI+ : Drawing lines with rounded corners

带角和透明度的 Android 按钮

Android 在带有圆角和 ImageView 的 GridView 中创建项目

php - 使用 imagecopyresampled() PHP GD 圆角透明_平滑_角