点击div把它变成圆形

Original 2018-12-12 13:39:34 221
abstract: <!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>javascript测试</title> <script type="text/javascript"> function myclic(x){

8[F325~[`H}6S])DLTTRDQM.pngGZBDT8)_0(]GZZTH95{A(AI.png 

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>javascript测试</title>

<script type="text/javascript">

function myclic(x){

x.style.borderRadius="50px"

}



</script>

</head>

<body>

<div style="width: 100px;height: 100px;border:1px,solid,#ccc;background:pink;" onclick="myclic(this)"></div>

</body>

</html>


Correcting teacher:查无此人Correction time:2018-12-12 13:45:00
Teacher's summary:做的不错,很圆。可以给个按钮,当点击按钮,在变为圆形。

Release Notes

Popular Entries