File tree Expand file tree Collapse file tree 1 file changed +64
-0
lines changed
pages/component/cover-view Expand file tree Collapse file tree 1 file changed +64
-0
lines changed Original file line number Diff line number Diff line change 1+ <template>
2+ <view>
3+ <video ref="video" id="myVideo" class="video" :src="src" controls="true">
4+ <cover-view class="coverview">
5+ <text class="text">{{ '\uEA06\uEA0E\uEA0C\uEA0A 我是可以滚动的cover-view 我是可以滚动的cover-view 我是可以滚动的cover-view 我是可以滚动的cover-view 我是可以滚动的cover-view 我是可以滚动的cover-view 我是可以滚动的cover-view 我是可以滚动的cover-view 我是可以滚动的cover-view' }}</text>
6+ </cover-view>
7+ </video>
8+ </view>
9+ </template>
10+
11+ <script>
12+ export default {
13+ data() {
14+ return {
15+ title: 'cover-view',
16+ src: "https://img.cdn.aliyun.dcloud.net.cn/guide/uniapp/%E7%AC%AC1%E8%AE%B2%EF%BC%88uni-app%E4%BA%A7%E5%93%81%E4%BB%8B%E7%BB%8D%EF%BC%89-%20DCloud%E5%AE%98%E6%96%B9%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B@20181126.mp4"
17+ }
18+ },
19+ onLoad() {
20+ },
21+ methods: {
22+ }
23+ }
24+ </script>
25+
26+ <style>
27+ .content {
28+ text-align: center;
29+ height: 400upx;
30+ }
31+
32+ .logo {
33+ height: 200upx;
34+ width: 200upx;
35+ margin-top: 200upx;
36+ }
37+
38+ .title {
39+ font-size: 36upx;
40+ color: #8f8f94;
41+ }
42+
43+ .text {
44+ color: #4CD964;
45+ font-family: unincomponents;
46+ }
47+
48+ .video {
49+ width: 750rpx;
50+ height: 400rpx;
51+ background-color: #808080;
52+ }
53+
54+ .coverview {
55+ position: absolute;
56+ left: 0;
57+ right: 0;
58+ top: 0rpx;
59+ height: 150rpx;
60+ border-width: 10rpx;
61+ border-color: #4CD964;
62+ overflow-y: scroll;
63+ }
64+ </style>
You can’t perform that action at this time.
0 commit comments