<template>
<text id = 'text' >input</text>
</template>
<script>
</script>
<style>
text{
background-color:red;
height:100px;
width:100px;
margin-left:100px;
margin-top:100px;
/*对齐文本到这个红色框中心*/
text-align:center;
border-width:10px;
border-radius:5px;
border-color:blue;
}
</style>
网友评论