styles

styling tr or td in emails?

只愿长相守 提交于 2019-12-23 21:27:01
问题 I want to change whole row cells background-color and font-size. (with inline-styles , because I can't use stylesheets or <style> tag) Which element should I add these styles? I should add them on each <td> in one row or once for <tr> tag? which way is better? <tr> <td style="background-color:red;font-size:12px">blah blah</td> <td style="background-color:red;font-size:12px">blah blah</td> </tr> or <tr style="background-color:red;font-size:12px"> <td>blah blah</td> <td>blah blah</td> </tr> 回答1

Why is this invulnerable to styling?

南笙酒味 提交于 2019-12-23 20:06:43
问题 I just want to change it's color to #DD4814 but I can't. It's a "share button" btw. What could be the reason? <span class='st_sharethis' st_title='<?php the_title(); ?>' st_url='<?php the_permalink() ?>' displayText='Compartir'></span> <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script><script type="text/javascript">stLight.options({publisher:'eb2f12b2-11c6-4013-bf2c-e42dcf3112f5'});</script> 回答1: This works for me: .stButton .sharethis {color:#DD4814} 回答2:

Question about Data Template or Style in WPF xaml

可紊 提交于 2019-12-23 19:15:34
问题 I have a textbox that has the following simple XAML (not necessary to read it - just have it for reference): <TextBox Name="m_ctrlUserDeviceType" Style="{StaticResource textStyleTextBox}" Text="{Binding Source={x:Static api:MySettings.Instance}, Path=UserDeviceType, ValidatesOnExceptions=true, NotifyOnValidationError=true}" Validation.Error="TextBox_Error" MinHeight="25" Margin="4" VerticalAlignment="Top" MaxLength="23" VerticalContentAlignment="Center" HorizontalAlignment="Left" MinWidth=

Styling a Gridview “Caption” from C# class

狂风中的少年 提交于 2019-12-23 18:47:31
问题 I'm trying to style the caption of a ASP.Net GridView in a C# file. here is my method that returns a styled GridView: private GridView setupGridView(string caption) { var gview = new GridView() { BackColor = Color.White, BorderColor = Color.Gray, BorderStyle = BorderStyle.Solid, BorderWidth = new Unit(1, UnitType.Pixel), Caption = caption, ForeColor = Color.Black, }; gview.HeaderStyle.BackColor = Color.Navy; gview.HeaderStyle.ForeColor = Color.White; gview.HeaderStyle.BorderColor = Color

Delphi. How to disable Vcl Themes for TFileOpenDialog and TOpenDialog

只谈情不闲聊 提交于 2019-12-23 18:47:25
问题 How to disable Vcl Themes for TFileOpenDialog and TOpenDialog ? I try procedure TForm1.FormCreate(Sender: TObject); var chosenDirectory: String; openDialog : TFileOpenDialog; begin TStyleManager.Engine.RegisterStyleHook(TFileOpenDialog, TStyleHook); chosenDirectory:=''; try openDialog:=TFileOpenDialog.Create(Self); openDialog.Options := [fdoPickFolders]; // var 2 // Not works //TStyleManager.Engine.RegisterStyleHook(TFileOpenDialog, TStyleHook); if openDialog.Execute then chosenDirectory:

In WPF, how do I give my custom control a default style to be used in Design Mode?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 18:42:31
问题 I have created a custom WPF control. The control acts as a container with various regions (so it can work like a master page). The style for this control is loaded at runtime from a separate resource dictionary as follows: <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/MyApp.Application;component/Themes/Theme.xaml" x:Name="theme"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources> My

Wpf Tool Window Style Application not visible in alt+tab

ⅰ亾dé卋堺 提交于 2019-12-23 16:51:48
问题 I have a WPF application with Main Window which is not a tool window Launch a child window which has WindowStyle="ToolWindow" ShowInTaskbar="False" from main window Now BOTH Main Window and Child Window are not visible in Alt+Tab. [Child window not appearing in alt+tab is expected behavior,but Main window should be visible] Any help would be appreciated. Related link:http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/95e076a3-3030-4dc0-ab23-a7e489b2a160 回答1: It works as expected on my

WPF remove glossy effect from selection/mouse over of a GridView

断了今生、忘了曾经 提交于 2019-12-23 16:27:39
问题 I've searched an answer to this simple question but didn't find a solution yet. I have the following code: <Grid> <Border BorderBrush="#666666" BorderThickness="1,1,1,1" CornerRadius="3"> <Border.Background> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FF020f1e" Offset="0"/> <GradientStop Color="#FF484F58" Offset="1"/> </LinearGradientBrush> </Border.Background> <ListView Name="lvUsers" Background="Transparent" Foreground="White" Margin="3" FontSize="12"

changing background color of togglebutton when checked

蓝咒 提交于 2019-12-23 15:00:13
问题 I am trying the distinguish the state of the toggle button when clicked. I have the snippet below <Window x:Class="WpfApplication2.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Window.Resources> <Style x:Key="OnOffToggleImageStyle" TargetType="ToggleButton"> <Style.Triggers> <Trigger Property="IsChecked" Value="True"> <Setter Property="Background" Value="DimGray

Change both text and background color in title bar (Android)?

心不动则不痛 提交于 2019-12-23 12:53:49
问题 I build an Android app and I am trying to change the title's bar background and text colour. In AndroidManifest.xml: <application ... android:theme="@style/ThemeSelector" > In styles.xml: <style name="ThemeSelector" parent="android:Theme.Light"> <item name="android:windowTitleBackgroundStyle">@style/WindowTitleBackground</item> </style> <style name="WindowTitleBackground"> <item name="android:background">@color/titlebackgroundcolor</item> <item name="android:textColor">@color/titletextcolor<