我需要使用html
and创建这种布局css
。
我使用div
标签为这个布局编码。
class App extends Component {
render() {
return (
<div className="AppTitle">
<b>Score:</b>
<div>
<button type="button">Rock</button>
<button type="button">Paper</button>
<button type="button">Scissors</button>
</div>
</div>
);
}
}
应用程序.css
.AppTitle {
margin: 100px;
}
它看起来像这样
使用 css 样式。给出边界和边界半径。你会得到你想要的。
.AppTitle{
padding:50px;
}
button{
padding:20px;
border:1px solid blue;
border-radius:10px;
background-color: Transparent;
}
<div class="AppTitle">
<u><b>Score:</b></u>
<div>
<button type="button">
Rock
</button>
<button type="button">Paper</button>
<button type="button">Scissors</button>
</div>
</div>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句