迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設計理念, 支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務經(jīng)理
微信掃描以上二維碼
028-61286886
在線咨詢
視頻上傳到對應欄目,PC訪問頁面顯示正常,但是手機端訪問,視頻寬度會很長,嘗試設置了/static/assets/editor/summernote.min.js 搜索640,全部改為100%,依然未能解決。
前端展示界面用css代碼控制播放寬度就行了,設置100%
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復@迅??蚣苈?lián)合創(chuàng)始人 請老師給予詳細指導,謝謝!
寫一句css就可以了啊,js不需要修改
回復@守望天空 老師是說在show頁面里面頭部寫入css對嗎?
我在手機模板的目錄下找到show內(nèi)容頁模板,在內(nèi)容前端加了CSS
<style>
video {
width: 100%;
height: auto;
}
</style>
但是問題依然如故。
<style> video { width: 100% !important; max-width: 100% !important; height: auto; } </style>
回復@優(yōu)速開發(fā)工作室
{template "header.html"}
<header class="hui-header">
width: 100% !important;
max-width: 100% !important;
<div id="hui-back"></div>
<h1>{$title}</h1>
<a id="hui-search" href="javascript:dr_m_top_category();"><i class="fa fa-navicon"></i></a>
</header>
<div class="hui-header-line"></div>
<div class="page-content margin-top-20">
<div class="search-page search-content-2">
<div class="portlet light">
<div class="portlet-title">
<div class="caption">
<span class="caption-subject font-dark ">{$title}</span>
</div>
<div class="search-post-foot fc-content-tool">
<div class="search-post-meta">
<i class="fa fa-calendar font-blue"></i>
<a href="javascript:;">{$updatetime}</a>
<i class="fa fa-fire font-blue"></i>
<a href="javascript:;">{dr_show_hits($id)}次</a>
<div class="portlet-body" style="height: auto;overflow: hidden;">
<div class="row">
<div class="col-md-12 xrcontent">
{dr_text_rel($content)}
<div class="col-md-12">
<div class="blog-single-foot fc-news-tag-list">
<ul class="blog-post-tags">
{loop $kws $name $url}
<li class="uppercase">
<a href="{$url}">{$name}</a>
</li>
{/loop}
</ul>
<div class="blog-single-foot">
<p class="fc-show-prev-next">
<strong>上一篇:</strong>{if $prev_page}<a href="{$prev_page.url}">{$prev_page.title}</a>{else}沒有了{/if}<br>
</p>
<strong>下一篇:</strong>{if $next_page}<a href="{$next_page.url}">{$next_page.title}</a>{else}沒有了{/if}
{template "footer.html"}
依然不生效
<style> video { max-width: 100% !important; height: auto; } </style>
這個可以試下
視頻的寬度已經(jīng)在html里面寫死了,你需要修改這里
回復@云水 大佬您好!請問這個頁面是在哪里?謝謝!
回復@老李工作室 感謝大佬!改了,依然沒有效果。
前端展示界面用css代碼控制播放寬度就行了,設置100%
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復@迅??蚣苈?lián)合創(chuàng)始人 請老師給予詳細指導,謝謝!
寫一句css就可以了啊,js不需要修改
回復@守望天空 老師是說在show頁面里面頭部寫入css對嗎?
我在手機模板的目錄下找到show內(nèi)容頁模板,在內(nèi)容前端加了CSS
<style>
video {
width: 100%;
height: auto;
}
</style>
但是問題依然如故。
<style> video { width: 100% !important; max-width: 100% !important; height: auto; } </style>回復@優(yōu)速開發(fā)工作室
{template "header.html"}
<header class="hui-header">
<style>
video {
width: 100% !important;
max-width: 100% !important;
height: auto;
}
</style>
<div id="hui-back"></div>
<h1>{$title}</h1>
<a id="hui-search" href="javascript:dr_m_top_category();"><i class="fa fa-navicon"></i></a>
</header>
<div class="hui-header-line"></div>
<div class="page-content margin-top-20">
<div class="search-page search-content-2">
<div class="portlet light">
<div class="portlet-title">
<div class="caption">
<span class="caption-subject font-dark ">{$title}</span>
</div>
</div>
<div class="search-post-foot fc-content-tool">
<div class="search-post-meta">
<i class="fa fa-calendar font-blue"></i>
<a href="javascript:;">{$updatetime}</a>
</div>
<div class="search-post-meta">
<i class="fa fa-fire font-blue"></i>
<a href="javascript:;">{dr_show_hits($id)}次</a>
</div>
</div>
<div class="portlet-body" style="height: auto;overflow: hidden;">
<div class="row">
<div class="col-md-12 xrcontent">
{dr_text_rel($content)}
</div>
<div class="col-md-12">
<div class="blog-single-foot fc-news-tag-list">
<ul class="blog-post-tags">
{loop $kws $name $url}
<li class="uppercase">
<a href="{$url}">{$name}</a>
</li>
{/loop}
</ul>
</div>
</div>
</div>
</div>
<div class="blog-single-foot">
<p class="fc-show-prev-next">
<strong>上一篇:</strong>{if $prev_page}<a href="{$prev_page.url}">{$prev_page.title}</a>{else}沒有了{/if}<br>
</p>
<p class="fc-show-prev-next">
<strong>下一篇:</strong>{if $next_page}<a href="{$next_page.url}">{$next_page.title}</a>{else}沒有了{/if}
</p>
</div>
</div>
</div>
</div>
{template "footer.html"}
依然不生效
<style> video { max-width: 100% !important; height: auto; } </style>這個可以試下
視頻的寬度已經(jīng)在html里面寫死了,你需要修改這里
回復@云水 大佬您好!請問這個頁面是在哪里?謝謝!
回復@老李工作室 感謝大佬!改了,依然沒有效果。
<style> video { max-width: 100% !important; height: auto; } </style>