weex web获取html高度,weex 中的 web 标签如何控制高度?

我希望用 web 标签来加载一个网页,但是因为网页比较长,所以如果我为web标签指定了一个确定的高度,那么高度

以外的内容就无法显示,并且web标签也不支持滚动,也就是说我嵌入的页面,部分内容是不可见的。有什么办法可以

动态获取web标签的高度吗?或者让web标签可以滚动。

------------------------ 更新

4 {{nodetype}}

.webview {

width: 750px;

height: 1200px;

}

import topcarousel from './components/topcarousel.vue';

import navbtn from './components/navbtn.vue';

import allsee from './components/allsee.vue';

import type from './components/type.vue';

import type2 from './components/type2.vue';

import topic from './components/topic.vue';

import unique from './components/unique.vue';

export default {

name: 'app',

data: {

weburl: 'http://www.1905.com/',

nodetype: 'init'

},

methods: {

calH: function(event) {

var that = this;

var node = weex.document.getRef('webview');

that.nodetype = node.type;

}

},

components: {

"topcarousel": topcarousel,

"navbtn": navbtn,

"allsee": allsee,

"type": type,

"type2": type2,

"topic": topic,

"unique": unique

}

};

weex 版本

bVVBY1?w=347&h=135

------------------------- 更新

将 web 标签内容移到 scroller 外边就可以解决这个问题,最外层有 div 套一下。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值