xhtml

Why doesn't SVG work on local HTML files?

大憨熊 提交于 2020-01-11 05:18:09
问题 I'm confused. If I point by browser (Chrome or Safari on OSX) to this web site, it shows all the SVG perfectly: http://emacsformacosx.com/ Now, if I view source on that page, copy it, and paste it into a new HTML document on my desktop, then view that with either browser, I get no SVG at all. Why the difference? Why does SVG work on the web site, but not in the local HTML file? Thanks! 回答1: You renamed it to HTML, and the browser assumes html content.. while the page is text/xml .. if you

Facebook Connect and HTML5, xmlns available?

跟風遠走 提交于 2020-01-11 04:33:25
问题 Facebook Connect and their "Social Widgets" documentation mention that you need to add an xmlns attribute to your <html> tag on the page where it will be used. I understand that xmlns is for XML Name-spacing, and have used such with XHTML before. However, with all the recent talk about HTML4 / HTML5, without having read through the entire spec, is the xmlns attribute compatible with valid HTML5? What about HTML4? If I've looked over an obvious mention of this in the docs, I'm sorry... point

Do we need “CSS reset” for mobile browsers also?

安稳与你 提交于 2020-01-10 14:22:26
问题 Do we need "CSS reset" for mobile specific site also? like we need for desktop browsers? Can css reset on mobile sites decrease the performance of rendering? 回答1: How strongly do you believe in CSS reset for the desktop? I tend to agree with those who argue that CSS resets are too heavy-handed (have you ever read one? I'd never heard of some of those elements) and that ultimately, hand-crafted rules based on your actual needs will be most predictable and efficient. The mobile platform only

Javascript does not work under JSF template again

时光怂恿深爱的人放手 提交于 2020-01-07 07:37:10
问题 I have found the thread answered by BalusC It describes the exact problem I have. When I found it I thought I have found my answer as well, but for me the solution is not working. I had problems with the < h:outputScript> tag already, maybe it is the same problem (the < script> tag is working). I have the same project description as the user Plaha, that put the question. I am trying to call a JavaScript function defined in the template page with the parameters attributes of the backing JSF

css transition only working in Firefox

混江龙づ霸主 提交于 2020-01-07 04:52:07
问题 I'm trying to use CSS transitions to make a background image fade in on my menu when you hover over it. I want it to take about 2 seconds to fade it. It works perfectly in Firefox but all on other browsers it just appears instantly. In IE it doesn't work at all but I'm not worried about that since I never expected it to work. CSS LAYOUT .mainmenu ul li{ height: 86px; display: inline-block; margin: 0; padding: 0; z-index:1000; position: relative; } .mainmenu li:after{ content: ""; opacity: 0;

Is it possible that a directory copied and pasted to a particular directory using XHTML plugin in DITA OT 1.8.5

怎甘沉沦 提交于 2020-01-06 15:17:33
问题 Is it possible that a directory or a file copying from 'resource' folder in org.dita.xhtml to out put folder generated by the XHTML DITA OT transform. If its possible using xsl changes in plugin its possible means provide me the code. Any other way is there means please guide me the steps to do. Please assist me. 回答1: You should use the depend.preprocess.post extension point, or another one that fits your needs, to call a new Ant target. plugin.xml <plugin id="com.example.extendchunk">

Integrate JQuery with Richfaces

余生长醉 提交于 2020-01-06 12:17:34
问题 im newbie in the world of Js , my Jquery doesn't work with richfaces. I want to do something like this : http://jsfiddle.net/bFuEv/ . This is my code in my xhtml file : <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://jboss.com/products/seam/taglib" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http:/

Integrate JQuery with Richfaces

♀尐吖头ヾ 提交于 2020-01-06 12:15:23
问题 im newbie in the world of Js , my Jquery doesn't work with richfaces. I want to do something like this : http://jsfiddle.net/bFuEv/ . This is my code in my xhtml file : <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://jboss.com/products/seam/taglib" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http:/

Vertical align a block

北城以北 提交于 2020-01-06 11:45:20
问题 How on earth do you center a div vertically? Horizontal has enough ways already, but no matter what i try, vertical centering is just impossible. body { vertical-align: middle;} Does nothing body {text-align: middle;} Does nothing div.middle {top: 50%;} Does nothing Is it even possible? I think i'm gonna cry. 回答1: See Vertical Centering in CSS. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>Universal vertical center with CSS</title> <style> .greenBorder {border: 1px

zeroClipboard complex css problem

夙愿已清 提交于 2020-01-06 08:38:10
问题 i have list of images and on mouse over there is option box shows under it, which has embeded code input box to copy from. now i implemented zeroclipboard on it, for making copy function work on click, so when i do mouse over on image, it shows the option box properly, but when i take mouse to click on the input box to copy the code, the option gets closed, thinking its not in option div anymore, because zeroclipboard has div on top of it so mouse goes on it and it gets closed. so solution