[问题] CSS程式码的颜色控制?

楼主: dharma (達)   2017-05-16 00:32:59
先请问要怎么在PTT贴程式码
方便板友观看和复制和测试?
主要问题如下
想把下面这段“(a) CSS程式码”加入到“(b) HTML程式码”
效果是颜色反转
(a)要怎么改呢?
选择器试了几种可能的写法都不成功
Thanks
(a)
filter: invert(100%) hue-rotate(180deg);
transform: translate3d(0,0,0);
-webkit-filter: invert(100%) hue-rotate(180deg);
-webkit-transform: translate3d(0,0,0)}
(b) 网页图:http://imgur.com/a/cDcOP
<!DOCTYPE html>
<html>
<head>
<script
src="http://maps.googleapis.com/maps/api/js?key=AIzaSyBzE9xAESye6Kde-3hT-6B90nfwUkcS8Yw&sensor=false">
</script>
<script>
function initialize()
{
var mapProp = {
center:new google.maps.LatLng(51.508742,-0.120850),
zoom:5,
mapTypeId:google.maps.MapTypeId.ROADMAP
};
var map=new google.maps.Map(document.getElementById("googleMap"),
mapProp);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<div id="googleMap" style="width:500px;height:380px;"></div>
</body>
</html>
作者: eight0 (欸XD)   2017-05-16 04:35:00
我用 codepen, jsbin, plunker

Links booklink

Contact Us: admin [ a t ] ucptt.com