我想知道HTML或CSS中是否存在某种权重属性(或者至少是一种解决方法).
我不是指字体重量.我的意思是元素可以拉伸到的大小.
<div id="wrapper">
<div weight="1">
<div weight="2">
</div>
Run Code Online (Sandbox Code Playgroud)
在这个例子中,第一个div应该占宽度或高度的1/3(取决于包装器的显示属性及其内容的方向),因为包装器中元素的权重之和为3,div的权重为1.因此第二个div应占空间的2/3(重量= 2).
这将是一个很好的方法来设置包装器中元素的宽度,如果一个宽度相对于其他的宽度,如果它们的数量是动态的.
这样的事情是存在的,还是我需要使用JS呢?
我不明白上周的安全补丁:https://typo3.org/teams/security/security-bulletins/typo3-core/typo3-core-sa-2016-022/.我有一个旧的TYPO3 6.2安装.我已截断所有cf_*表并使用UID 2-6打开页面.没有cHash.结果我看到13个cf_cache_hash条目.现在我已经从前端的列表页面打开了一个详细信息页面.我在URL中看到一些参数,如action,controller,当前显示记录的UID以及导致cHash的参数.然后我将这些参数(不包括id = x)复制到我的2-6页的URL.在cf_cache_hash中,我还有13条记录.因此,没有缓存泛滥.
或者我如何解释这句话:
具有有效cHash参数的链接将导致新生成的页面缓存条目.由于cHash未绑定到特定页面,因此攻击者可以对多个页面使用有效的cHash参数,从而导致其他无用的页面缓存条目.
下一个问题:
如果使用像realurl这样的扩展,则需要刷新它们的缓存(以及TYPO3缓存)
你能告诉我哪些表我/我们应该清楚吗?
也许没问题.但是tx_realurl_pathcache怎么样?当然,我可以清楚这一点,但是早期的realurl配置的旧条目呢?如果我截断该表,则这些旧条目不再有效,并且它们不会再次构建.因此,旧的搜索引擎结果无效.
来自我们的一位客户的问题:是否足以清除后端的系统缓存,还是应该单击Installtool中的Clear all Cache?尼斯.IMO,这是不够的,表格必须直接在DB上截断.对.
下一个:
这意味着如果此类URL由搜索引擎编入索引,则此搜索引擎的访问者将最终处于不正常工作的页面上.
嘿很酷.现在?解决办法是什么?保持原样吗?IMO它取决于一个名为:pageNotFoundOnCHashError的InstallTool设置.对?
请告诉我们该怎么做,请添加更多细节如何处理.
斯特凡
我想用自己的字段扩展 sys_file_reference 。所以我创建了该字段和 TCA。在后端,该字段可用,但我无法引用流体模板中的该字段。
ext_tables.php:
CREATE TABLE sys_file_reference (
nofollow int(11) DEFAULT '0' NOT NULL,
);
Run Code Online (Sandbox Code Playgroud)
配置/TCA/Overrides/sys_file_reference.php:
$tempColumns = array(
'nofollow' => array(
'exclude' => 1,
'l10n_mode' => 'mergeIfNotBlank',
'label' => 'Link als Nofollow?',
'config' => array(
'type' => 'check',
'default' => '0'
)
)
);
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('sys_file_reference',$tempColumns,1);
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette('sys_file_reference', 'imageoverlayPalette','--linebreak--,nofollow','after:description');
Run Code Online (Sandbox Code Playgroud)
到目前为止它在后端工作。
类/域/模型/MyFileReference.php
<?php
namespace LISARDO\Foerderland\Domain\Model;
use TYPO3\CMS\Extbase\Domain\Model\FileReference;
class MyFileReference extends FileReference {
/**
* nofollow
*
* @var integer
*/
protected $nofollow;
/**
* Returns the nofollow
*
* @return integer …
Run Code Online (Sandbox Code Playgroud) 当我打开一个新文件(例如Ctrl+ N)时,Sublime Text 3中的默认语法只是纯文本.我想把它改成例如Markdown.(怎么样)这可能吗?
我想避免像这里提出的"hacky"解决方案:
在Packages/User目录中创建一个名为'default_syntax.py'的文件,然后添加:
Run Code Online (Sandbox Code Playgroud)import sublime, sublime_plugin class DefaultSyntaxCommand(sublime_plugin.EventListener): def on_new(self, view): view.set_syntax_file('Packages/HTML/HTML.tmLanguage')
markdown syntax-highlighting plaintext sublimetext sublimetext3
这条线在CSS中意味着什么?
#ffffff url(https://cloud.githubusercontent.com/assets/1830348/15354890/1442159a-1cf0-11e6-92b1-b861dadf1750.jpg) no-repeat center center / cover
Run Code Online (Sandbox Code Playgroud)
我想弄清楚.在W3S中它说下面的结构,但我似乎无法看到'/'和其他属性如何匹配这个结构.
background: bg-color bg-image position/bg-size bg-repeat bg-origin bg-clip bg-attachment initial|inherit;
Run Code Online (Sandbox Code Playgroud) 目前在我的页面上我有这个布局
<div class="card">
<div class="card-block">
<h4 class="card-title text-muted">UltimateWarrior15</h4>
<h6 class="card-subtitle text-muted">
Adventurer card
</h6>
</div>
<img data-src="holder.js/100px180/?text=Image">
<div class="card-block">
<div class="form-group row">
<label for="player-level-text" class="col-xs-2 col-form-label">Rank</label>
<div class="col-xs-10">
<label class="form-control text-muted">D</label>
</div>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
它给出了非常简单的结果
但我想要实现的是将rank
值从label
格式化的类似于输入移动到某些图像资源,或者只是标记更大的字体,这将重叠像这样的图像
如何实现这个使用HTML
和CSS
?
我使用Firebase开发了一个基于Vue.js的小型网络应用程序来存储和同步数据.余存储items
(例如,具有属性标题和字幕)和lists
与属性listItems中,其中键阵列的(那些从火力地堡生成)items
被存储.结构如下所示:
现在问题是:我想显示一个列表并显示listitems属性中的项目,我这样做:
Compontent:
var ShowList = Vue.extend({
template: '#show-list',
firebase: {
// get all existing items from firebase
items: firebase.database().ref('items')
},
data: function () {
// get list item keys of list 'list_id' and bind it to this.list
this.$bindAsObject('list', listsRef.child(this.$route.params.list_id));
return {
list: this.list
};
}
});
Run Code Online (Sandbox Code Playgroud)
模板:
<!-- show a list -->
<template id="show-list">
<ul v-if="list.items != ''">
<li v-for="key in list.items"> <!-- I would …
Run Code Online (Sandbox Code Playgroud) javascript firebase vue.js firebase-realtime-database vuefire
实际上是否可以在 CSS 中的透明 PNG 图像上应用背景颜色?这是一个例子:
使用CSS,转动这个图像
使用类似这样的 CSS 代码background-color: rgba(0,0,300,.5)
全部都是完整的 CSS(当然还有 HTML)?
谢谢。
自上次将joomla更新为3.8后,我无法通过"NON-Joomla-Script"调用以下函数.
$db=JFactory::getDBO();
Run Code Online (Sandbox Code Playgroud)
我收到以下错误消息:
致命错误:未捕获错误:未找到类'JFactory'
我通过require_once加载了几个Joomla-Class,这是自Joomla 3.7.x以来的工作,例如:
require_once("[RootToPath]/libraries/joomla/database/factory.php");
Run Code Online (Sandbox Code Playgroud)
我需要加载哪些Joomla-Class,再次使用这个类?
谢谢你的帮助.
我注意到旧 Bootstrap v3 和新 Bootstrap V4 之间的内联表单的行为方式有所不同。
我有两个代码片段:
在这个版本中,当页面变窄时,每个表单元素都会调整大小以占据页面的整个宽度。Bootstrap 4 不再发生这种情况。我看不到Bootstrap 3 文档提到了这种全角行为 - 但它仍然这样做 - 因为,这些字段在内联表单上仍然是全角的在一个form-group
div 中。
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<h1>bootstrap/3.3.6</h1>
<form class='form-inline' role='form' action='search.php' method='post' id='form_search'>
<input type='hidden' name='method' value='search' />
<div class='form-group'>
<input type='text' class='form-control' id='str' name='str' placeholder = 'Search'>
</div>
<div class='form-group'>
<select name='mn' id='mn' class='form-control'>
<option value='n'>Month</option>
<option value='1'>January</option>
<option value='2'>February</option>
</select>
</div>
<div class='form-group'>
<select class='form-control' name='yr' id='yr'>
<option value='n'>Year</option>
<option value='1995'>1995</option>
<option value='1996'>1996</option>
</select>
</div>
<div class='form-group'> …
Run Code Online (Sandbox Code Playgroud)css ×5
html ×4
css3 ×3
bootstrap-4 ×2
html5 ×2
typo3 ×2
background ×1
caching ×1
fal ×1
firebase ×1
javascript ×1
joomla ×1
joomla3.8 ×1
markdown ×1
plaintext ×1
png ×1
security ×1
sublimetext ×1
sublimetext3 ×1
syntax ×1
typo3-6.2.x ×1
vue.js ×1
vuefire ×1