怎么改變文字的位置
<div?class="box1"> ???????<lable>文章標(biāo)題:</lable> ???????<input??value="輸入文章標(biāo)題"?size="100"?type="text"?style="margin-left:100px;?margin-top:40px;height:30px">
怎么寫才能改變“文章標(biāo)題”的位置,讓這四個字放在輸入框的旁邊啊?
<div?class="box1"> ???????<lable>文章標(biāo)題:</lable> ???????<input??value="輸入文章標(biāo)題"?size="100"?type="text"?style="margin-left:100px;?margin-top:40px;height:30px">
怎么寫才能改變“文章標(biāo)題”的位置,讓這四個字放在輸入框的旁邊啊?
2019-08-19
舉報
2019-08-20
這里是因為你設(shè)置margin-left:100px后剩下的位置不足以顯示輸入框,所以會自動換行。
如果你不想自動換行,那么將margin-left改小,或者增加width屬性,限制其寬度。
2019-08-19
<style type="text/css">
</style>