|
经测试,textarea 组件, 设置高度小于 100px 的,不起作用,只有高于 100px 他才能起作用,下面是代码及截图
- <template name='123'>
- <view class="page">
- <view class="aaa bg-red">
- <textarea placeholder="高50px" class="test"></textarea>
- <textarea placeholder="高10px" class="test2"></textarea>
- <textarea placeholder="高100px" class="test3"></textarea>
- <textarea placeholder="高110px" class="test4"></textarea>
- </view>
- </view>
- </template>
- <script>
- export default {
- name: 'test',
- apiready() {//like created
- },
- data() {
- return {
- }
- },
- methods: {
- }
- }
- </script>
- <style>
- .test4{
- margin-top: 10px;
- height: 110px;
- }
- .test3 {
- margin-top: 10px;
- height: 100px;
- }
- .test2 {
- margin-top: 10px;
- height: 10px;
- }
- .test {
- margin-top: 10px;
- height: 50px;
- }
- .bg-red {
- background: rgb(255, 0, 0);
- }
- .aaa {
- margin-top: 40px;
- height: 600px;
- width: 100%;
- }
- .page {
- height: 100%;
- }
- </style>
复制代码
|
|