styles 相关问题

不要使用此标签。此标记目前没有单一的,明确定义的含义。它通常用于代替[css]或与[css]结合使用。它还用于有关用户界面外观和源代码格式问题的问题。

如何只为一个模板添加滚动

我是前端新手,刚刚开始学习 Vue + Quasar 框架。所以,我有一个表,想修复我的表名,滚动只在我的表项中可用。 我是前端新手,刚刚开始学习 Vue + Quasar 框架。所以,我有一张桌子,想修复我的桌子名称,滚动仅在我的桌子项目中可用。 <template> <q-table virtual-scroll class="fit" :style="'overflow: hidden;'" > <template v-slot:top > <div>Fruits</div> <q-space /> <q-btn icon="search"/> </template> <template v-slot:fruit="props"> <div class="q-pa-xs col-xs-12 col-sm-6 col-md-4"> // my items cards </div> </template> </q-table> </template> <style> .fit .q-table__top, .q-table__bottom, thead tr:first-child th /* bg color is important for th; just specify one */ thead tr th position: sticky z-index: 1 thead tr:first-child th top: 0 /* this is when the loading indicator appears */ &.q-table--loading thead tr:last-child th top: 48px </style>

回答 0 投票 0

Xamarin Forms - 从带有渐变的 ShadowView 中删除条带

如上所述,我的应用程序中有一个 shadowview。我尝试使用 LinearGradient 实现它,如下所示。 <

回答 1 投票 0

更改 themes.xml 中的主题颜色项目不会更改应用程序中的任何内容

我想自定义我的应用程序主题。我更改了 colorPrimary 和 colorPrimaryDark 以及其他属性,但没有一个在应用程序中进行了任何更改。 清单.XML: 我想自定义我的应用程序主题。我更改了 colorPrimary 和 colorPrimaryDark 和其他属性,但没有一个在应用程序中进行任何更改。 清单.XML: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.example.miplan"> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" tools:ignore="ScopedStorage"> </uses-permission> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/Theme.MaterialComponents.DayNight"> <activity android:name=".SplashActivity" android:exported="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".MainActivity" android:exported="false" /> <activity android:name=".LogoActivity" android:exported="true"> </activity> </application> </manifest> 主题.XML: <resources> <!-- Base application theme. --> <style name="Theme.MiPlan" parent="Theme.MaterialComponents.DayNight.DarkActionBar"> <item name="colorPrimary">#458077</item> <item name="colorPrimaryDark">#620051</item> <item name="android:textColorPrimary">#FD1CC1</item> <item name="android:windowBackground">#FFFF</item> <item name="android:navigationBarColor">#FF25</item> </style> </resources> 我一般如何擅长使用主题和样式? 使用您创建的主题 android:theme="@style/Theme.MiPlan"

回答 1 投票 0

固定边界半径[重复]

我正在设计图像滑块的样式,但在为其边框添加渐变后,border-radius 属性停止工作。我试过使用其他几个属性,但没有任何效果。什么……

回答 1 投票 0

具有基于 IsMouseOver 触发器的更改图像行为的按钮不适用于 TemplateBinding Conent 作为图像源

我对 XAML WPF 有点陌生,我试图制作一个按钮来改变它基于 IsMouseOver Trigger 的行为并且它使用静态数据(对于单个元素),当我试图将它概括为...

回答 0 投票 0

TouchableOpacity onPress

我的 touchableOpacity 不起作用,我真的不明白这是什么原因。我认为原因可能是 Animated.View 或位置:“绝对”,但我不明白 w...

回答 1 投票 0

pandas 中的数据框单元格样式

我在 python 的数据框中得到了一个邻接矩阵,用于可达性 HW 我的部分硬件是检查解决方案是否正确 所以我的想法是改变单元格的颜色: 如果 adjM[vi][vj] ==...

回答 0 投票 0

如何将 Pandas 数据框导出到 excel 并使用列中定义的样式进行转置

我的输入是这样的: 在此处输入图像描述 STYLE 是我在程序中添加的一列,用于为每个相应的 METRIC 字段指定格式。如果我的话,我们可以将其更改为其他内容...

回答 2 投票 0

Creating a diagonal border-left With css

我正在尝试使用 CSS 中的一些函数创建这种形状的对角线边框。 CSS中是否有一个功能:创建类似的东西 这是我已经创建的形状 这是一个例子......

回答 1 投票 0

我们可以在 JetBrains 或 Eclipse IDE 中添加(程序/脚本)自定义警告吗

我想寻找在 Eclipse 或 JetBrains IDE 中添加警告的方法。由于我们对嵌入式系统进行编程,因此如果它注意到使用了一个整数并且可以具有 0 到 256 之间的值,那么它...

回答 0 投票 0

从 pinia 状态捕获数据到模板时打字稿打字错误

我正在尝试使用 TypeScript 将数据从 Pinia 存储发送到子组件的输入字段。但我有 g 类型错误 - 类型 '{ $:

回答 1 投票 0

当特定列具有特定数量的带分隔符的字段时如何选择行

我有以下数据框 将熊猫导入为 pd 将 numpy 导入为 np d = {'Cell':['cell_D1_TY_L_90','cell4_D2_TY_L_90','cell6_TY_L_90','cell2_D4_TY_L_90','cell1_L_90'],'D1':[5, 2, 2, 6,6], 'D2':[ np.na...

回答 1 投票 0

在 #shadow-root 中覆盖 div 的 CSS

我们正在使用第三方插件,我正在尝试特别覆盖一个 div 的 CSS。问题是我不明白你应该如何使用#shadow-root 带阴影的图像...

回答 1 投票 0

将 DIV 与两侧的内容居中对齐

所以我有 5 个项目(在一个包含的 DIV 中)。项目阵容为: 文字 图像 DIV 图像 文字 我希望显示它以便 DIV 居中,图像“拥抱”DIV,然后文本“拥抱”图像,...

回答 1 投票 0

如何在 vs.code 中制作自定义样式的折叠注释

我在 typescript 中工作,使用“vs code”编辑器。 我想在 // #region myFunctions 注释范围中对相似的函数进行分组。 这是一个美好的未来,但是,当我崩溃它时,它就是...

回答 0 投票 0

如何链接具有多个父类的 CSS 类选择器?

如果 HTML 是这样的: -section1 --h1 --h2 --h3 --section2 --h1 --h2 --h3 -section3 --h1 --h2 --h3 --section4 --h1 --h2 --h3 如果我们想给 section1, section2, section3 相同的样式,我们应该怎么做...

回答 1 投票 0

Create WPF SolidColorBrush in Non-UI-Thread leads to strange exception

我知道不允许在非 ui 线程中创建 WPF UI 元素,例如 SolidColorBrush。 我是偶然做到的,而不是 WPF 告诉我现在允许这样做,我得到了一个

回答 1 投票 0

PdfSharpCore - 如何使用样式

谁能告诉我如何使用 PdfSharpCore 的样式?我在 OpenShift 上运行 jsreport 时遇到很多麻烦,所以我想尝试 PdfSharpCore,但我找不到如何使用 css。用 js...

回答 1 投票 0

如何更改 react-star-ratings 中嵌套元素的属性

我的任务是使用 react-star-ratings 实现带有类名(不是内联/属性)星级的样式。尝试更改此组件的嵌套元素的属性(查找类的名称

回答 0 投票 0

如何从 CollectionView 所选项目中删除默认橙色背景?

这个集合视图很好,但是在项目选择之后。有可见的橙色背景。我应该如何删除它? 这个集合视图很好,但是在项目选择之后。有可见的橙色背景。我应该如何删除它? <CollectionView x:Name="MyCollectionView" ItemsSource="{Binding Groups}" SelectionMode="Single" SelectedItem="{Binding SelectedGroup}" ItemsLayout="HorizontalList" Margin="10,10,0,10"> <CollectionView.ItemTemplate> <DataTemplate x:DataType="models:PlcGroup"> <Frame Margin="0,0,5,0" Padding="10,5" HasShadow="False" CornerRadius="10"> <VisualStateManager.VisualStateGroups> <VisualStateGroupList> <VisualStateGroup x:Name="CommonStates"> <VisualState x:Name="Normal" > <VisualState.Setters> <Setter Property="Style" Value="{DynamicResource unselectedGroup}" /> </VisualState.Setters> </VisualState> <VisualState x:Name="Selected"> <VisualState.Setters> <Setter Property="Style" Value="{StaticResource selectedGroup}" /> </VisualState.Setters> </VisualState> </VisualStateGroup> </VisualStateGroupList> </VisualStateManager.VisualStateGroups> <Frame.GestureRecognizers> <TapGestureRecognizer Command="{Binding SelectItem, Source={RelativeSource AncestorType={x:Type viewModels:MainViewModel}}}" CommandParameter="{Binding .}"/> </Frame.GestureRecognizers> <Label Text="{Binding Name}"/> </Frame> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> 将所有后代的样式更改为 DataTemplate 确实很痛苦,但我只想将颜色设置为框架背景。在一个完美的世界里,我也想改变标签的 TextColor,但我放弃了。 好像问这个问题我需要输入更多的文字,但其实也没什么可问的了 这可能是由于 CollectionView Selected Item 的默认颜色。我在这里给出一个解决方法。 您可以将 Frame 包裹在容器中,例如 StackLayout 并将 BackgroundColor 属性设置为白色。将 x:Name="myFrame" 设置为我们将在 VisualStateManager 中使用的框架。 <DataTemplate> <StackLayout BackgroundColor="White"> <Frame x:Name="myFrame" .... 然后 VisualStateGroup 应该附加到 StackLayout,因为它是外部容器: <DataTemplate> <StackLayout BackgroundColor="White"> <Frame x:Name="myFrame" Margin="0,0,5,0" Padding="10,5" HasShadow="False" CornerRadius="10"> <Frame.GestureRecognizers> .... </Frame.GestureRecognizers> <Label Text="{Binding Name}" /> </Frame> <VisualStateManager.VisualStateGroups> <VisualStateGroupList> <VisualStateGroup x:Name="CommonStates"> <VisualState x:Name="Normal" > <VisualState.Setters> <Setter TargetName="myFrame" Property="Frame.Style" Value="{DynamicResource unselectedGroup}" /> </VisualState.Setters> </VisualState> <VisualState x:Name="Selected"> <VisualState.Setters> <Setter TargetName="myFrame" Property="Frame.Style" Value="{StaticResource selectedGroup}" /> </VisualState.Setters> </VisualState> </VisualStateGroup> </VisualStateGroupList> </VisualStateManager.VisualStateGroups> </StackLayout> </DataTemplate> 更多信息,您可以参考视觉状态。 希望对你有用。

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.