迅睿CMS框架是一款PHP8高性能·簡(jiǎn)單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費(fèi)且不限制商業(yè)使用,是免費(fèi)開源的產(chǎn)品,以萬端互聯(lián)為設(shè)計(jì)理念,支持的微信公眾號(hào)、小程序、APP客戶端、移動(dòng)端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
視頻上傳到對(duì)應(yīng)欄目,PC訪問頁面顯示正常,但是手機(jī)端訪問,視頻寬度會(huì)很長(zhǎng),嘗試設(shè)置了/static/assets/editor/summernote.min.js 搜索640,全部改為100%,依然未能解決。
前端展示界面用css代碼控制播放寬度就行了,設(shè)置100%
回復(fù)@迅睿框架聯(lián)合創(chuàng)始人 請(qǐng)老師給予詳細(xì)指導(dǎo),謝謝!
寫一句css就可以了啊,js不需要修改
回復(fù)@守望天空 老師是說在show頁面里面頭部寫入css對(duì)嗎?
我在手機(jī)模板的目錄下找到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>
回復(fù)@優(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}沒有了{(lán)/if}<br>
</p>
<strong>下一篇:</strong>{if $next_page}<a href="{$next_page.url}">{$next_page.title}</a>{else}沒有了{(lán)/if}
{template "footer.html"}
依然不生效
<style> video { max-width: 100% !important; height: auto; } </style>
這個(gè)可以試下
視頻的寬度已經(jīng)在html里面寫死了,你需要修改這里
回復(fù)@云水 大佬您好!請(qǐng)問這個(gè)頁面是在哪里?謝謝!
回復(fù)@老李工作室 感謝大佬!改了,依然沒有效果。
前端展示界面用css代碼控制播放寬度就行了,設(shè)置100%
回復(fù)@迅睿框架聯(lián)合創(chuàng)始人 請(qǐng)老師給予詳細(xì)指導(dǎo),謝謝!
寫一句css就可以了啊,js不需要修改
回復(fù)@守望天空 老師是說在show頁面里面頭部寫入css對(duì)嗎?
我在手機(jī)模板的目錄下找到show內(nèi)容頁模板,在內(nèi)容前端加了CSS
<style>
video {
width: 100%;
height: auto;
}
</style>
但是問題依然如故。
回復(fù)@優(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}沒有了{(lán)/if}<br>
</p>
<p class="fc-show-prev-next">
<strong>下一篇:</strong>{if $next_page}<a href="{$next_page.url}">{$next_page.title}</a>{else}沒有了{(lán)/if}
</p>
</div>
</div>
</div>
</div>
{template "footer.html"}
依然不生效
這個(gè)可以試下
視頻的寬度已經(jīng)在html里面寫死了,你需要修改這里
回復(fù)@云水 大佬您好!請(qǐng)問這個(gè)頁面是在哪里?謝謝!
回復(fù)@老李工作室 感謝大佬!改了,依然沒有效果。