gpt4 book ai didi

html - webkit 框圆 Angular 有困难

转载 作者:太空宇宙 更新时间:2023-11-03 20:57:12 25 4
gpt4 key购买 nike

我正在尝试在我的 html 代码中为一个框实现一个圆 Angular 。当我在 Chrome 上运行该文件时,我有框和所有属性,但 Angular 落不圆。我在 MAC OSX Lion 上使用 Komodo Edit。解决办法是什么?谢谢

 <!doctype html>
<html lang="en">
<head>
<meta charset=="utf-8" />
<link rel="stylesheet" href="new.css" />
</head>
<body>
<div id="box">
<p id="text"> Hello </p>
</div>
</body>
</html>

CSS3:

body {
text-align:center;
}

#box {
display: block;
width: 500px;
margin:50px auto ;
padding:15px ;
text-align:center;
border: 1px solid blue;
background: red;
-webkit-border-radius: 25p;
}

#text {
font:bold 100px Century Gothic;
}

最佳答案

问题可能是它应该是 25px 而不是 25p。但是根据您的 Chrome 版本,您应该删除 -webkit- 并只使用 border-radius;

关于html - webkit 框圆 Angular 有困难,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9034681/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com