IE10 bug, mouse event passed by

In IE10
When click DIV positioned top of DOM
that has no background and exist text of another DOM,
mouse event passed by

Solution:
backgroud:#ffffff;
opacity:0;

Test Case

Posted by / December 22, 2014 / Posted in CSS

Twitter Button – Resize with javascript

<div id=”sns_twitter”>
<a href=”https://twitter.com/share”
    class=”twitter-share-button”
    data-url=”[your site address]”
    data-text=”[your site description]”
    data-hashtags=”[your site title]”>Tweet</a>
<script type=”text/javascript”>
    ! function(d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0],
        p = /^http:/.test(d.location) ? ‘http’ : ‘https’;
        if (!d.getElementById(id)) {
            js = d.createElement(s);
            js.id = id;
            js.src = p + ‘://platform.twitter.com/widgets.js’;
            fjs.parentNode.insertBefore(js, fjs);
        }
    }(document, ‘script’, ‘twitter-wjs’);
</script>
</div>

// get twitter button(iframe) size
var snsTwitterIframeWidth = $(“#sns_twitter > iframe”).css(“width”);
// trim “px”
snsTwitterIframeWidth = parseInt(snsTwitterIframeWidth.substring(0, snsTwitterIframeWidth.length – 2));
// minus 34px on button(iframe) size (english only)
var snsTwitterWidth = snsTwitterIframeWidth – 34);
// resize twitter button wrapper
$(“#sns_twitter”).css(“width”, snsTwitterWidth + “px”);

// 1.wrap twitter button with div(sns_twitter here)
// 2.set style div overflow:hidden
// 3.resize your div size

Basics of web page

These maybe help you that create standard web pages.

en – 30 HTML Best Practices for Beginners
http://net.tutsplus.com/tutorials/html-css-techniques/30-html-best-practices-for-beginners/

en – 20 HTML Best Practices You Should Follow
http://sixrevisions.com/web-standards/20-html-best-practices-you-should-follow/

en – A Detailed Look at the 960 CSS Framework
http://net.tutsplus.com/articles/news/a-detailed-look-at-the-960-css-framework/

Check your target browser if you want using html5 full functions.

ja – HTML5 browser spec checking tool
http://spec.nttdocomo.co.jp/spbss/index.html