Before asking I have tried all possibles solutions posted here but I can't make this work. Also i am not sure if its working regular outlook or I just have the issue on the w10 mail app.
This is the code I am using.
<td background="image.jpg" bgcolor="#e7e7e9" width="299" height="274" valign="top">
<!--[if gte mso 9]>
<v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width:299px;height:274px;">
<v:fill type="tile" src="image" color="#e7e7e9" />
<v:textbox inset="0,0,0,0">
<![endif]-->
<div>
</div>
<!--[if gte mso 9]>
</v:textbox>
</v:rect>
<![endif]-->
</td>
Any guidelines would be appreciated
Thanks
From searching the web, I found and adapted a VML-based solution that is also backward compatible for Outlook.
Note: This is only for background images embedded within a table-cell. I haven't attempted this for a full-body email background image yet. Once I do, I'll update this post.
Background Info (no pun intended)
The previous VML-based hack used to embed background images in Outlook emails (versions 2007, 2010, 2013, 2016) doesn't work for the Windows 10 Email App (Win10 app). For reference, you can see that solution at backgrounds.cm.
Microsoft continues the use of Microsoft Word as its HTML rendering engine, but I'm guessing they made changes to Win10 app's rendering engine that affected its VML support.
Note: My example uses an image with dimensions 640x254. Note: I have a feeling the XML namespace is duplicated, but since it works, I don't want to mess with it.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xml:lang="en" lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Your Title</title>
</head>
<body>
<table width="640" align="center" cellpadding="0" cellspacing="0" style="margin:0 auto;">
<tr><td height="254" background="http://yourimagepath.jpg" style="background:url(http://yourimagepath.jpg) no-repeat 0 0;">
<!--[if gte mso 9]>
<v:image xmlns:v="urn:schemas-microsoft-com:vml" id="theImage" style="behavior:url(#default#VML);position:absolute;width:640px;height:254px;top:0;left:0;z-index:-1" src="http://yourimagepath.jpg"/>
<![endif]-->
</td></tr>
</table>
</body>
</html>
I highlighted the specific things I added or are needed to ensure it works.
Adapted from:
Alex Robinson's comment from Windows 10 Mail Email Rendering Support + Quirks.
Ruth Boon's comment from Windows 10 Mail: Bulletproof Background/Buttons Broken.
Although there is support for VML in W10 app, backgrounds and 'bulletproof buttons' through VML no longer work. I have not found a good technical explanation on this, but through my own testing and through other forums and blogs, I have received many others who agree these no longer work for W10 app.
See these blog posts for some more details into W10 app. Most references to the email background issues is in the comments section.
http://freshinbox.com/blog/the-outlook-team-reaches-out/
https://blog.jmwhite.co.uk/2015/04/11/an-email-developers-first-look-at-the-outlook-mail-app-in-windows-10/
Related
I have problem with CKEditor. I download lastest version and implement on my CMS. All buttons and textarea are disabled and I can't do anything. I searched and find solutions like CKEditor.inline or readOnly but it just doesn't work...
My code looks just like:
<!DOCTYPE HTML>
<html lang="pl">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test</title>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
</head>
<body>
<textarea name="editor" class="text" rows="4" cols="115">Some text</textarea>
<script type="text/javascript">
CKEDITOR.replace("editor");
</script>
</body>
</html>
And here is live version: http://www.hbmedia.pl/test.php
I finally figured this one out. Thought I'd post an answer in case anybody else comes across this question.
In order for the "Classic Editor" to function within a custom ckeditor4 package, you need to make sure the "wysiwygarea" feature is added to the package. This is named "iFrame editing area" in the feature list.
If you don't do this, only the inline editor is available, even though the classic editor shows up as disabled.
If you don't want to use iframe as a content container you might want to use Div editing area. The behaviour is described in IFrame Editing Area page in the notes section:
This is the core functionality of the classic, iframe-based editor which can only be disabled if it is backfilled by an alternative plugin (such as Div Editing Area) or if only inline editor is used.
Is it possible to tell a VBScript to use Windows Visual Styles, so that any form components use Windows themed ones rather than classic ones? For example, to make a MsgBox show a styled button rather than a classic 3D raised square one.
This:
As opposed to this:
In HTA applications, A simple meta tag will turn on Visual Styles:
<META HTTP-EQUIV="MSThemeCompatible" CONTENT="yes">
This trick has seemed to disappear completely from Google search results, leaving this S/O question at the top!
In the case where a VBScript MsgBox is the culprit, one would have to modify wscript host to use visual styles. But for the sake of the post, you can easily make your own replica of a MsgBox using an HTA file, and turning on visual styles. I created an exact replica based off your screenshot:
msgbox.hta:
<html>
<head>
<title>MsgBox Title</title>
<META HTTP-EQUIV="MSThemeCompatible" CONTENT="yes">
<HTA:APPLICATION ID="Custom MsgBox"
APPLICATIONNAME="Custom MsgBox"
BORDER="thin"
BORDERSTYLE="normal"
CAPTION="yes"
CONTEXTMENU="no"
ICON=""
MAXIMIZEBUTTON="no"
MINIMIZEBUTTON="no"
SHOWINTASKBAR="no"
SINGLEINSTANCE="no"
SYSMENU="yes"
SCROLL="no"
WINDOWSTATE="normal"/>
<script language="javascript">window.resizeTo(400,170);</script>
</head>
<body style="font-family:Arial;padding:20px 0 0 20px;background:rgb(180,240,230)">
<p>MsgBox Body; lorem ipsum dipsum</p><br>
<div align="right"><button onclick="window.close()" style="width:80px">OK</button></div>
</body>
</html>
It's small enough where you could echo it into an hta file right from a batch script, if you wanted to.
I hope this helps!
You cannot, but if you want to customize other properties of a message box this may help: http://www.javascriptkit.com/javatutors/vbalert.shtml
This has been asked before, but I can't figure out what's wrong. I'm printing pdfs using phantomjs .render().
The rendered page is basically a local static site with these properties:
<meta charset="UTF-8">
font: normal 17px helvetica,arial,verdana,sans-serif
running and tested on Windows locally and Azure Worker Roles
Chinese language pack installed and working when printing the same page from Chrome (Installed fonts e.g. Arial Unicode MS, SimSun ...)
Latin characters are all fine, just Chinese ones are displayed as "?"
For example
I also tried the entire page in Arial or SimSun only, but no difference.
Any idea how to get this working on Windows?
Thanks!
You need a chinese font. None of them is in a chinese font family.
font: normal 17px helvetica,arial,verdana,sans-serif
Here are some font has chinese char.
宋体:SimSun; 黑体:SimHei; 新宋体:NSimSun; 微软雅黑:Microsoft YaHei; 新細明體:PMingLiU
This is much more than a guide.Chinese Standard Web Fonts: A Guide to CSS Font Family Declarations for Web Design in Simplified Chinese
This has Traditional Chinese fonts.Chinese web fonts
Google's font. Sorry for not being a link, there is a limit for me.
noto-sans-hans
Adobe's typekit
source-han-sans
Test Html file:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>你好中文!</title>
<style type="text/css">
p.serif{font-family:"Times New Roman",Georgia,Serif}
p.sansserif{font-family:SimSun}
p.s1{font-family: 黑体}
p.s2{font-family: KaiTi}
p.s3{font-family: Microsoft YaHei}
</style>
</head>
<body>
<div>
<p class="serif">你好中文!111</p>
<p class="sansserif">宋体</p>
</div>
<div>
<p class="s1">黑体</p>
<p class="s2">楷体</p>
<p class="s3">微软雅黑</p>
</div>
</body>
</html>
Result
Lastest to do, try to change your location to china. I don't expect this working, as I tried the phantomjs in win10 ENG preview, working very well. Control Panel > Region > Administrative > Language for non-Unicode programs
I downloaded and deployed the 2 AngularJS demos below
https://code.msdn.microsoft.com/windowsapps/AngularJS-TODO-Sample-for-b651512a
https://code.msdn.microsoft.com/AngularJS-Detail-Sample-7a409e5e/view/Discussions
I deployed them to WP8 and Android devices and they worked fine.
But when I deployed to Windows 8 Store App, the input box does not work.
Both demos have the same issues.
I tried using VS 2013 and VS 2015. The outcomes are the same.
Am I missing any build setting? Please advice.
I searched this few days. Add:
ng-csp
to html tag:
<!DOCTYPE html>
<html ng-csp>
<head>
<meta charset="utf-8" />
<title>BlankCordovaApp1</title>
<!-- BlankCordovaApp1 references -->
<link href="css/index.css" rel="stylesheet" />
<!-- Cordova reference, this is added to your app when it's built. -->
<script src="cordova.js"></script>
<script src="scripts/platformOverrides.js"></script>
<script src="scripts/angular.js"></script>
<script src="scripts/index.js"></script>
</head>
<body ng-app="">
<p>Hello, your application is ready!</p>
<input type="text" value="text" />
</body>
</html>
Please refer to my stackoverflow response for a similar problem.
There are a few things you may want to check in your app - the version of jQuery should be >= 2.x, ng-cspis added to your index.html and winstore-jscompatlibrary is added to your project.
These are common issues that windows 8.1 apps with angularjs/jQuery throw. Hope this helps!
I put this code into my <head> in order to load an additional stylesheet for IE8.
<!--[if lt IE 9]>
<link rel="stylesheet" href="style-ie.css">
<![endif]-->
I also already did this 1000 times, but this time however it is not working. It's just not loaded in IE8. If I remove the conditional comment it load's normally.
Anybody an idea?
Perhaps, since you're targeting IE8, you should keep in the type="text/css" bit which was no longer necessary in HTML5? i.e.:
<link rel="stylesheet" href="style-ie.css" type="text/css">
Is this for an HTML5 site or XHTML / HTML4? If it's for an HTML5 site, following is what I usually do for these cases, as it's a good idea to also add the HTML5 shim bit in the same conditional comment:
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<link href="css/ie.css" rel="stylesheet" type="text/css" />
<![endif]-->
Hope this helps!