【发布时间】:2020-11-12 10:38:52
【问题描述】:
我刚刚在 Delphi 10.3.3 中尝试了 FMX TWebBrowser。我无法旋转 img 标签中的照片。以下页面在 Google Chrome 中运行。但它在 Delphi 10.3.3 的 FireMonkey TWebBrowser 中不起作用。怎么了?请有人帮助我!
<!DOCTYPE html>
<html>
<head>
<style>
img {
display: block;
width: 300px;
height: auto;
}
</style>
</head>
<body>
<button onclick="rotate();">Rotate 90 degrees</button>
<br />
<img src="20190228-1.JPG" id="theID" />
<script>
function rotate() {
var imgX=document.getElementById("theID");
imgX.style.transform = "rotate(90deg)";
imgX.style.display = "block";
}
</script>
</body>
</html>
【问题讨论】:
标签: javascript image delphi firemonkey twebbrowser